Last active
March 19, 2021 19:44
-
-
Save carlosribas/15bd2fa4b25df19704ace354a4321a8c to your computer and use it in GitHub Desktop.
Change the default stable repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <configuration-directory>/playbooks/roles/start-helm/tasks/main.yml | |
--- | |
- name: start helm | |
command: helm init --stable-repo-url https://charts.helm.sh/stable | |
- name: "get tiller-deploy pod name" | |
shell: > | |
kubectl get pods --namespace=kube-system | | |
grep tiller-deploy- | | |
awk '{print $1;}' | | |
tr -d '\n' | |
register: get_pod_name | |
- name: "wait for tiller-deploy ready status" | |
command: > | |
kubectl get pods --namespace=kube-system {{get_pod_name.stdout}} | |
-o jsonpath='{.status.containerStatuses[*].ready}' | |
register: tiller_ready_status | |
# Wait for 10 minutes | |
until: tiller_ready_status.stdout | match( '^(true\s)*true$' ) | |
retries: 120 | |
delay: 5 | |
- name: "add KubeNow Helm repository" | |
command: helm repo add kubenow https://kubenow.github.io/helm-charts/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Helm versions prior to 2.17.0 have the deprecated https://kubernetes-charts.storage.googleapis.com/index.yaml as the default stable repository, which no longer resolves.