0

I try use certificate and DNS http://my.local-ip.co/ in Kubernetes.

I download certificate and key. Create ingress-tls secret.

kubectl create secret tls ingress-tls --key /tmp/server.key --cert /tmp/bundled_cert_file.pem

Try install kubernetes dashboard by helm with ingress-tls secret:

helm install kube-dashboard --set ingress.enabled=true \
--set protocolHttp=true \
--set service.externalPort=9090 \
--set ingress.tls[0].secretName=ingress-tls \
--set ingress.tls[0].hosts[0]=kubernetes-dashboard.10-66-218-100.my.local-ip.co \
--set ingress.hosts[0]=kubernetes-dashboard.10-66-218-100.my.local-ip.co \
--set extraArgs="{--enable-insecure-login=true,--enable-skip-login=true,--disable-settings-authorizer=true,--insecure-bind-address=0.0.0.0,--insecure-port=9090}" \
kubernetes-dashboard/kubernetes-dashboard

But ingress get error:

SSL certificate "default/ingress-tls" does not contain a Common Name or Subject Alternative Name for server "kubernetes-dashboard.10-66-218-100.my.local-ip.co": x509: certificate is valid for *.my.local-ip.co, not kubernetes-dashboard.10-66-218-100.my.local-ip.co

How disable validating SSL certificate? Thanks!

Anton Patsev
  • 111
  • 4

0 Answers0