Score:0

Error validating ssl certificate for svc.IP.my.local-ip.co in ingress

in flag

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!

Michael Hampton avatar
cz flag
Does this answer your question? [Why does my wildcard SSL certificate cause a domain mismatch error on a second level subdomain?](https://serverfault.com/questions/645230/why-does-my-wildcard-ssl-certificate-cause-a-domain-mismatch-error-on-a-second-l)
Anton Patsev avatar
in flag
Thanks for answer. But this is not answer for my question.
Michael Hampton avatar
cz flag
Yes, it is. It explains exactly what has happened and why you cannot do what you have tried to do.
Anton Patsev avatar
in flag
I think you right. Please answer my question.
Anton Patsev avatar
in flag
Or may be delete question?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.