惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
M
MIT News - Artificial intelligence
GbyAI
GbyAI
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
IT之家
IT之家
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
爱范儿
爱范儿
N
Netflix TechBlog - Medium
U
Unit 42
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园 - 叶小钗
G
Google Developers Blog
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
腾讯CDC

Ogenki

`RunLore`: the SRE buddy that investigates incidents — and learns from every fix Self-hosted LLM stack: a solid foundation for an open-weight platform built to evolve A few months with `Claude Code`: tips and workflows that helped me `Agentic Coding`: concepts and hands-on Platform Engineering use cases `PostgreSQL`: From Metrics to Query Plan Analysis `VictoriaLogs`: What if logs management became simple and performant? `VictoriaMetrics` : Effective alerts, from theory to practice 🛠️ Harness the Power of `VictoriaMetrics` and `Grafana` Operators for Metrics Management `Dagger`: The missing piece of the developer experience? `TLS` with Gateway API: Efficient and Secure Management of Public and Private Certificates Going Further with `Crossplane`: Compositions and Functions Beyond Traditional VPNs: Simplifying Cloud Access with `Tailscale` `Gateway API`: Can I replace my Ingress Controller with `Cilium`? Applying GitOps Principles to Infrastructure: An overview of `tf-controller` `CloudNativePG`: An easy way to run PostgreSQL on Kubernetes 100% `GitOps` using Flux My Kubernetes cluster (GKE) with `Crossplane` Manage tools versions with `asdf` Helm workshop: Templating exercises Helm workshop: Build your first chart Helm workshop: Ecosystem Helm workshop: Third party charts Helm workshop Kubernetes workshop: Manage permissions in Kubernetes Kubernetes workshop: Troubleshooting Kubernetes workshop: Resources allocation and autoscaling Kubernetes workshop: Complete application stack Kubernetes workshop: Local environment Run an application on Kubernetes Kubernetes workshop
Helm workshop: Lifecycle operations
2021-06-04 · via Ogenki

Apply a change, anything. For example we will add a label stage: dev. Edit the file templates/_helpers.tpl

1{{- define "web.labels" -}}
2stage: "dev"
3...

Deploy a new revision with the same command we ran previously

1helm upgrade --install web web

Now we can have a look to the changes we’ve made so far to the release

1$ helm history web
2REVISION        UPDATED                         STATUS          CHART           APP VERSION     DESCRIPTION
31               Mon Feb 15 15:11:09 2021        superseded      web-0.1.0       1.16.0          Install complete
4...
54               Mon Feb 15 21:15:25 2021        superseded      web-0.1.0       1.16.0          Upgrade complete
65               Mon Feb 15 21:21:21 2021        deployed        web-0.1.0       1.16.0          Upgrade complete

We can then check what would be the changes if we rollback to the previous revision

 1helm diff rollback web 4
 2default, web, Deployment (apps) has changed:
 3  # Source: web/templates/deployment.yaml
 4  apiVersion: apps/v1
 5  kind: Deployment
 6  metadata:
 7    name: web
 8    labels:
 9-     stage: "dev"
10      helm.sh/chart: web-0.1.0
11...

Now that we’re sure we can safely rollback to the previous revision

1helm rollback web 4
2Rollback was a success! Happy Helming!

➡️ Next: Helm templating challenge