Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ScriptingSquirrel/6fbf670772fc2c127bb08f76284f25af to your computer and use it in GitHub Desktop.
Save ScriptingSquirrel/6fbf670772fc2c127bb08f76284f25af to your computer and use it in GitHub Desktop.
Install Ingress-enabled kubernetes-dashboard using Helm

Problem

$ helm install kubernetes-dashboard stable/kubernetes-dashboard --namespace MY_NAMESPACE --set ingress.enabled=true --set ingress.hosts={MYDASHBOARD.EXAMPLE.COM} --set-string ingress.annotations."nginx\.ingress\.kubernetes\.io/secure-backends"="true"
Error: UPGRADE FAILED: failed to create patch: failed to get versionedObject: unable to convert unstructured object to extensions/v1beta1, Kind=Ingress: unrecognized type: string

NB: A fix for the --set-string flag is on the way: helm/helm#4142

Workaround

Create file dashboard-values.yaml:

ingress:
  annotations:
    "nginx.ingress.kubernetes.io/secure-backends": "true"

Run command:

$ helm install kubernetes-dashboard stable/kubernetes-dashboard --namespace YOUR_NAMESPACE --set ingress.enabled=true --set ingress.hosts={MYDASHBOARD.EXAMPLE.COM} -f dashboard-values.yaml

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment