Created
November 11, 2019 19:52
-
-
Save collinmutembei/62ccd986441a61f0f9a3f9685bfe2930 to your computer and use it in GitHub Desktop.
gitlab-tiller
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
| export tiller_pod="$(kubectl get pod -l app=helm,name=tiller --namespace gitlab-managed-apps -o name|cut -d/ -f2)" | |
| kubectl port-forward "$tiller_pod" 44134:44134 --namespace gitlab-managed-apps </dev/null >/dev/null 2>&1 & | |
| export HELM_HOST="localhost:44134" | |
| helm init --client-only | |
| export TILLER_NAMESPACE="gitlab-managed-apps" | |
| kubectl get secrets/tiller-secret -n "$TILLER_NAMESPACE" -o "jsonpath={.data['ca\.crt']}" | base64 --decode > tiller-ca.crt | |
| kubectl get secrets/tiller-secret -n "$TILLER_NAMESPACE" -o "jsonpath={.data['tls\.crt']}" | base64 --decode > tiller.crt | |
| kubectl get secrets/tiller-secret -n "$TILLER_NAMESPACE" -o "jsonpath={.data['tls\.key']}" | base64 --decode > tiller.key | |
| helm list --tiller-connection-timeout 30 --tls --tls-ca-cert tiller-ca.crt --tls-cert tiller.crt --tls-key tiller.key --all --tiller-namespace gitlab-managed-apps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment