configure SSL in cluster of kubernetes

眉间皱痕 提交于 2019-12-24 19:17:04

问题


I have used both links kubernetes in aws.

1) https://ramhiser.com/post/2018-05-20-setting-up-a-kubernetes-cluster-on-aws-in-5-minutes/

  • with this link I successfully configure Kubernetes Cluster

https://codeburst.io/getting-started-with-kubernetes-deploy-a-docker-container-with-kubernetes-in-5-minutes-eb4be0e96370

  • with above link I successfully deployed/pulled docker image from ecr to cluster

But problem is that I need to run app through HTTPS(ssl) protocol

we have docker image in aws ECR.we also have certificate key file and chain file for ssl.how do we configure it with kubernetes? so container will run in https

right now it's running like http://www.example.com .It's should be like https://www.example.com

Process is like

1) push code in github (Done)

2) create docker image (Done)

3) push docker image to aws ECR (Done)

4) pull image from aws ecr and run with kubernetes cluster (Done)

6) work on http protocol on 80 port (done) http://www.example.com

7) bind domain to cluster end point(done)

8) configure SSL (Not done) https://www.example.com

Anybody have suggestions?


回答1:


To run the application or setup SSL and TLS on kubernetes best practices suggest to use cert-manager & ingress.

Ingress works as the gateway and expose the service to the outside world and manage the connection.

While cert-manager use for manage the SSL certificates for domains. you can follow this guide to setup ingress and cert-manager:

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes



来源:https://stackoverflow.com/questions/56665355/configure-ssl-in-cluster-of-kubernetes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!