diff --git a/kubernetes/helm/README.md b/kubernetes/helm/README.md index 220d4ca..46eb49b 100644 --- a/kubernetes/helm/README.md +++ b/kubernetes/helm/README.md @@ -7,7 +7,7 @@ Lets create a Kubernetes cluster to play with using [kind](https://kind.sigs.k8s.io/docs/user/quick-start/) ``` -kind create cluster --name helm --image kindest/node:v1.26.0 +kind create cluster --name helm --image kindest/node:v1.31.1 ``` # Getting Started with Helm @@ -32,16 +32,16 @@ export KUBE_EDITOR="nano" # test cluster access: /work # kubectl get nodes NAME STATUS ROLES AGE VERSION -helm-control-plane Ready master 26m v1.26.0 +helm-control-plane Ready control-plane 26m v1.31.1 ``` ## Install Helm CLI ``` -curl -LO https://get.helm.sh/helm-v3.4.0-linux-amd64.tar.gz -tar -C /tmp/ -zxvf helm-v3.4.0-linux-amd64.tar.gz -rm helm-v3.4.0-linux-amd64.tar.gz +curl -LO https://get.helm.sh/helm-v3.17.2-linux-amd64.tar.gz +tar -C /tmp/ -zxvf helm-v3.17.2-linux-amd64.tar.gz +rm helm-v3.17.2-linux-amd64.tar.gz mv /tmp/linux-amd64/helm /usr/local/bin/helm chmod +x /usr/local/bin/helm diff --git a/kubernetes/helm/example-app/templates/deployment.yaml b/kubernetes/helm/example-app/templates/deployment.yaml index da55125..c961fad 100644 --- a/kubernetes/helm/example-app/templates/deployment.yaml +++ b/kubernetes/helm/example-app/templates/deployment.yaml @@ -9,7 +9,7 @@ spec: selector: matchLabels: app: "{{ .Values.name }}" - replicas: 2 + replicas: {{ .Values.deployment.replicas | default 2 }} strategy: type: RollingUpdate rollingUpdate: