Skip to content

Instantly share code, notes, and snippets.

@collinmutembei
Created November 11, 2019 19:52
Show Gist options
  • Select an option

  • Save collinmutembei/62ccd986441a61f0f9a3f9685bfe2930 to your computer and use it in GitHub Desktop.

Select an option

Save collinmutembei/62ccd986441a61f0f9a3f9685bfe2930 to your computer and use it in GitHub Desktop.
gitlab-tiller
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