Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.
helm repo add bitnami https://charts.bitnami.com/bitnami
helm uninstall my-release
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
helm install my-release bitnami/mysql
helm list
helm upgrade my-release bitnami/mysql --version 9.0.0
apiVersion: v2
name: mon-chart
description: Un chart Helm pour Kubernetes
version: 0.1.0
appVersion: "1.16.0"
ports:
{{- range .Values.service.ports }}
- port: {{ .port }}
targetPort: {{ .targetPort }}
protocol: {{ .protocol }}
name: {{ .name }}
{{- end }}
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
# ...
{{- end }}
# Dans values.yaml
replicaCount: 3
# Dans deployment.yaml
replicas: {{ .Values.replicaCount }}