User Tools

Site Tools


универсальный_helm-чарт

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
универсальный_helm-чарт [2026/03/16 11:38]
val
универсальный_helm-чарт [2026/06/09 18:04] (current)
val
Line 53: Line 53:
 kube1:​~/​webd-k8s#​ mkdir -p uni-webd-chart/​templates/​ kube1:​~/​webd-k8s#​ mkdir -p uni-webd-chart/​templates/​
  
-mv -v my-webd-deployment.yaml uni-webd-chart/​templates/​ +cp -v my-webd-deployment.yaml uni-webd-chart/​templates/​ 
-mv -v my-webd-service.yaml uni-webd-chart/​templates/​+cp -v my-webd-service.yaml uni-webd-chart/​templates/​
 </​code>​ </​code>​
  
Line 427: Line 427:
 ... ...
         image: ...         image: ...
 +        {{- if .Values.lifecycle }}
         {{- with .Values.lifecycle.postStart }}         {{- with .Values.lifecycle.postStart }}
         lifecycle:         lifecycle:
Line 435: Line 436:
                 - "{{ . }}"                 - "{{ . }}"
                 {{- end }}                 {{- end }}
 +        {{- end }}
         {{- end }}         {{- end }}
 ... ...
-</​code>​<​code>​ +</​code>​
-kube1:​~/​webd-k8s#​ cp -v my-httproute.yaml uni-webd-chart/​templates/​ +
-kube1:​~/​webd-k8s#​ cp -v my-gateway.yaml uni-webd-chart/​templates/​+
  
 +  * Преподаватель:​
 +<​code>​
 +kube1:​~/​webd-k8s# ​
 +cp -v my-httproute.yaml uni-webd-chart/​templates/​
 +cp -v my-gateway.yaml uni-webd-chart/​templates/​
 +</​code><​code>​
 kube1:​~/​webd-k8s#​ cat uni-webd-chart/​values.yaml kube1:​~/​webd-k8s#​ cat uni-webd-chart/​values.yaml
 </​code><​code>​ </​code><​code>​
Line 510: Line 516:
 {{- end }} {{- end }}
 </​code><​code>​ </​code><​code>​
 +kube1:​~/​webd-k8s#​ helm template my-htwebd uni-webd-chart/​ -f env.yaml -f apps/​htwebd/​values.yaml
 +
 kube1:​~/​webd-k8s#​ helm upgrade -i my-htwebd uni-webd-chart/​ -f env.yaml -f apps/​htwebd/​values.yaml -n my-ns --create-namespace kube1:​~/​webd-k8s#​ helm upgrade -i my-htwebd uni-webd-chart/​ -f env.yaml -f apps/​htwebd/​values.yaml -n my-ns --create-namespace
 +
 +kube1:​~/​webd-k8s#​ kubectl -n my-ns events
 +
 +clien1$ curl https://​htwebd.corpX.un
 </​code>​ </​code>​
  
универсальный_helm-чарт.1773650320.txt.gz · Last modified: 2026/03/16 11:38 by val