This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
универсальный_helm-чарт [2026/01/09 17:23] val |
универсальный_helm-чарт [2026/01/12 11:07] (current) val [Helm - от основ до универсального чарта] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Helm - от основ до универсального чарта ====== | ====== Helm - от основ до универсального чарта ====== | ||
| + | * [[https://habr.com/ru/articles/792802/|Шаблонизатор GO text template для новичков]] | ||
| * [[https://helm.sh/docs/chart_template_guide/getting_started|Helm Getting Started]] | * [[https://helm.sh/docs/chart_template_guide/getting_started|Helm Getting Started]] | ||
| + | * [[https://habr.com/ru/articles/548720/|Основы работы с Helm чартами и темплейтами — Часть 2]] | ||
| * [[https://github.com/camptocamp/helm-application|Kubernetes HELM chart for a simple application]] | * [[https://github.com/camptocamp/helm-application|Kubernetes HELM chart for a simple application]] | ||
| * [[https://phoenixnap.com/kb/helm-environment-variables|How to Use Environment Variables with Helm Charts]] | * [[https://phoenixnap.com/kb/helm-environment-variables|How to Use Environment Variables with Helm Charts]] | ||
| Line 34: | Line 36: | ||
| * [[Система Kubernetes#cert-manager]] + FreeIPA [[Решение FreeIPA#Поддержка ACME]] | * [[Система Kubernetes#cert-manager]] + FreeIPA [[Решение FreeIPA#Поддержка ACME]] | ||
| - | ===== Шаг 2. Что у нас есть, для начала ===== | + | ===== Шаг 2. Последовательно изучаем синтаксис Helm, решая возникающие задачи ===== |
| + | |||
| + | * Разворачиваем первое приложение gowebd через [[Система Kubernetes#Manifest]] | ||
| + | |||
| + | * Заменяем [[Система Kubernetes#Manifest]]ы на [[Система Kubernetes#Helm]] шаблоны | ||
| + | |||
| + | <code> | ||
| + | kube1:~/webd-k8s# mkdir -p uni-webd-chart/templates/ | ||
| + | |||
| + | kube1:~/webd-k8s# cp my-webd-deployment.yaml uni-webd-chart/templates/my-webd-deployment.yaml | ||
| + | kube1:~/webd-k8s# cp my-webd-service.yaml uni-webd-chart/templates/my-webd-service.yaml | ||
| + | kube1:~/webd-k8s# cp my-ingress.yaml uni-webd-chart/templates/my-ingress.yaml | ||
| + | kube1:~/webd-k8s# cp my-certificate.yaml uni-webd-chart/templates/my-certificate.yaml | ||
| + | |||
| + | |||
| + | </code> | ||
| ===== Итоговый чарт ===== | ===== Итоговый чарт ===== | ||