Skip to content

Instantly share code, notes, and snippets.

@lastcoolnameleft
Last active July 29, 2020 21:32
Show Gist options
  • Save lastcoolnameleft/7eb87559ad9181baeb64ea0aeb575f37 to your computer and use it in GitHub Desktop.
Save lastcoolnameleft/7eb87559ad9181baeb64ea0aeb575f37 to your computer and use it in GitHub Desktop.
complex helm install
helm upgrade -i kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --debug \
--set service.type=ClusterIP \
--set ingress.enabled=true \
--set "ingress.paths[0]=/\(\.\*\)" \
--set "ingress.hosts[0]=$APP_HOSTNAME" \
--set "ingress.tls[0].secretName=$APP_HOSTNAME-tls" \
--set "ingress.tls[0].hosts[0]=$APP_HOSTNAME" \
--set ingress.annotations."kubernetes\.io/ingress\.class"=nginx \
--set ingress.annotations."cert-manager\.io/cluster-issuer"=letsencrypt-prod \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/rewrite-target"="/\$1" \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-url"="https://\$host/msal/auth" \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-signin"="https://\$host/msal/index?rd=\$escaped_request_uri" \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-response-headers"="x-injected-aio\,x-injected-name\,x-injected-nameidentifier\,x-injected-objectidentifier\,x-injected-preferred_username\,x-injected-tenantid\,x-injected-uti"
helm upgrade -i podinfo podinfo/podinfo --debug \
--set service.type=ClusterIP \
--set ingress.enabled=true \
--set "ingress.hosts[0]=$INGRESS_HOST" \
--set "ingress.path=/" \
--set "ingress.tls[0].secretName=$INGRESS_HOST-tls" \
--set "ingress.tls[0].hosts[0]=$INGRESS_HOST" \
--set ingress.annotations."kubernetes\.io/ingress\.class"=nginx \
--set ingress.annotations."cert-manager\.io/cluster-issuer"=letsencrypt-prod \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/rewrite-target"="/\$1" \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-url"="https://\$host/msal/auth" \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-signin"="https://\$host/msal/index?rd=\$escaped_request_uri" \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-response-headers"="x-injected-aio\,x-injected-name\,x-injected-nameidentifier\,x-injected-objectidentifier\,x-injected-preferred_username\,x-injected-tenantid\,x-injected-uti"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment