0

I just created a new kubernetes with one node poll in Digitalocean. I've installed nginx service in that pool. Now I can access that node pool using http://ip-address:port number. Now I need to add ssl certificate for this ip address. Is that possible? How can I add certificate for this ip address

Syam sg
  • 11
  • 4
  • Assigning ssl/tls certificate for an IP address seems to be possible (one of the [topics](https://stackoverflow.com/questions/2043617/is-it-possible-to-have-ssl-certificate-for-ip-address-not-domain-name?noredirect=1&lq=1)). However if you just want to play around, it's much easier to sign your own certificate and perform test you want to ([securing-the-service](https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#securing-the-service)) Do you need to have IP address exposed or what is the goal? – moonkotte May 10 '21 at 16:00

1 Answers1

0

The standard tool for LetsEncrypt on Kubernetes is cert-manager, https://cert-manager.io/docs/. You can also purchase a cert (or make a self-signed one, but that probably doesn't help) and configure it manually a la https://kubernetes.io/docs/concepts/configuration/secret/#tls-secrets.

coderanger
  • 52,400
  • 4
  • 52
  • 75
  • with the help of a tutorial I've added load balencer and add a subdomain in it. The ssl works perfectly but it show "502 Bad Gateway" error code. The tutorial I've used is https://docs.digitalocean.com/products/kubernetes/how-to/configure-load-balancers/#ssl-annotation – Syam sg May 08 '21 at 10:17