
https://fillswim.github.io/HelmChats/
Структура Helm Chart:
+---HelmChats
| +---My-Template-HelmChart
| | +---templates
| | | \---deployment.yaml
| | | \---hpa.yaml
| | | \---service.yaml
| | | \---ingress.yaml
| | \---Chart.yaml
| | \---values.yaml
| \---index.yaml
| \---my-template-helmchart-0.0.6.tgz
| \---README.md
helm package My-Template-HelmChart/
helm repo index --url https://fillswim.github.io/HelmChats/ .
helm repo add fillswimrepo https://fillswim.github.io/HelmChats/
helm repo update
helm search repo fillswimrepo
Просмотр всех установленных при помощи helm chart приложений:
helm list
с чартом из репозитория с параметрами, прописанными в файле
helm install \
my-gifservice \
fillswimrepo/my-template-helmchart \
-f /home/fill/K8SManifests/HelmChart_values_gifservice.yaml
с чартом из репозитория с параметрами, прописанными в командной строке
helm install \
my-gifservice \
fillswimrepo/my-template-helmchart \
--set container.image=fillswim/mygifservice-githubactions:latest \
--set containerPort=8080 \
--set servicePort=8080 \
--set cpuUtilization=50 \
--set memoryUtilization=80 \
--set host=gifservice.fillswim.com
чартом из папки
helm install \
my-gifservice \
My-Template-HelmChart/ \
-f /home/fill/K8SManifests/HelmChart_values_gifservice.yaml
проверка один раз:
curl -Is https://gifservice.fillswim.com/swagger-ui/index.html
посекундная проверка:
while true
do
my_date="$(date +"%T")"
my_status="$(curl -Is https://gifservice.fillswim.com/swagger-ui/index.html | head -n 1)"
printf "Time: %s , Status: %s\n" "$my_date" "$my_status"
sleep 1
done
чартом из репозитория с параметрами, прописанными в файле
helm upgrade \
my-gifservice \
fillswimrepo/my-template-helmchart \
-f /home/fill/K8SManifests/HelmChart_values_gifservice.yaml
чартом из репозитория с параметрами, прописанными в командной строке
helm upgrade \
my-gifservice \
fillswimrepo/my-template-helmchart \
--set container.image=fillswim/mygifservice-githubactions:latest \
--set containerPort=8080 \
--set servicePort=8080 \
--set cpuUtilization=60 \
--set memoryUtilization=85 \
--set host=gifservice.fillswim.com
helm uninstall my-gifservice