Install ssl on Kubernetes digital ocean load balancer

1/27/2019

I am having a website running on container port 80 and 443. I am using ready docker image from docker hub.

I have enabled SSL on Kubernetes using ingress.

I can not generate a certificate inside the pod. If I create cert inside the pod manually then at the time of service Apache restart then the container will restart and the whole pod will be created again. The WHOLE setup will change as default in docker image.

So how to install SSL on this website. Currently, it is giving an error of self-signed certificate.

-- Harsh Manvar
docker
kubernetes
ssl

1 Answer

1/28/2019

It is like you are describing, you are using a self-signed certificate.

If you want to remove the warning or error you will have to get a certificate from a well known CA like Comodo or Symantec. If not you will have to trust the CA that you used to create your self-signed certificate. This is an example on how to do it on Ubuntu.

Hope it helps!

-- Rico
Source: StackOverflow