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

推荐订阅源

T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
博客园 - Franky
The Cloudflare Blog
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
B
Blog
Y
Y Combinator Blog
V
V2EX
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
博客园 - 司徒正美
IT之家
IT之家
G
Google Developers Blog
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

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: Lifecycle operations 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: Ecosystem
2021-06-03 · via Ogenki

Helm’s configuration is stored in the environment variable $HELM_CONFIG_HOME , by default $HOME/.config/helm

All the environment variables are described in the documentation there.

Here are a few tools (with a wide adoption) that will add capabilities to Helm.

Plugins

There are several plugins in order to extend Helm’s features.

Some of them are really useful (kubeval, diff, secrets).

Helmfile

Helmfile is a really useful tool that allows you to declare the state of the releases on your cluster.

It helps keeping a central view of the releases deployed on a given cluster.

It automatically configures repositories, pulls dependencies and it is very helpful to build CI/CD workflows.

Of course it uses Helm under the hood and a few modules/plugins such as secrets decryption, helm diff

These steps are very basic, you should have a look at the documentation for further details.

Install the helmdiff plugin (used by helmfile)

1helm plugin install https://github.com/databus23/helm-diff

We’ll make use of some examples provided by CloudPosse

1git clone git@github.com:cloudposse/helmfiles.git
2cd helmfiles

Let’s say we want to install the kubernetes dashboard and the reloader tool.

1cat > releases/kubernetes-dashboard/dev.yaml <<EOF
2installed: True
3banner: "Workshop cluster"
4EOF

Now we’ll create our main helmfile.yaml that describes all the releases we want to install

1cat > helmfile.yaml <<EOF
2helmfiles:
3  - path: "releases/kubernetes-dashboard/helmfile.yaml"
4    values:
5      - releases/kubernetes-dashboard/dev.yaml
6  - path: "releases/reloader/helmfile.yaml"
7    values:
8      - installed: True
9EOF

Now we can see what changes will be applied.

 1helmfile diff
 2Adding repo stable https://charts.helm.sh/stable
 3"stable" has been added to your repositories
 4
 5Comparing release=kubernetes-dashboard, chart=stable/kubernetes-dashboard
 6********************
 7
 8        Release was not present in Helm.  Diff will show entire contents as new.
 9
10

The command helm sync will install the releases

 1helmfile sync
 2Adding repo stable https://charts.helm.sh/stable
 3"stable" has been added to your repositories
 4
 5Affected releases are:
 6  kubernetes-dashboard (stable/kubernetes-dashboard) UPDATED
 7
 8Upgrading release=kubernetes-dashboard, chart=stable/kubernetes-dashboard
 9Release "kubernetes-dashboard" does not exist. Installing it now.
10NAME: kubernetes-dashboard
11...

You can list all the releases managed by the local helmfile.

1helmfile list
2NAME                    NAMESPACE       ENABLED LABELS
3kubernetes-dashboard    kube-system     true    chart:kubernetes-dashboard,component:monitoring,namespace:kube-system,repo:stable,vendor:kubernetes
4reloader                reloader        true    chart:stakater/reloader,component:reloader,namespace:reloader,repo:stakater,vendor:stakater

Delete all the releases

1helmfile delete
2Listing releases matching ^reloader$
3reloader        reloader        1               2021-02-16 10:10:35.378800455 +0100 CET deployed        reloader-v0.0.68        v0.0.68
4
5Deleting reloader
6release "reloader" uninstalled

➡️ Next: Build a Helm chart