How to apply Comodo SSL to Kubernetes Ingress?

荒凉一梦 提交于 2021-01-28 08:28:42

问题


We purchased a Komodo SSL certificate, which come in 5 files:

I am looking for a guide for how to apply it on our Kubernetes Ingress.


回答1:


As it described in documentation:

you need to create secret with your cert:

apiVersion: v1
data:
  tls.crt: content_of_file_condohub_com_br.crt
  tls.key: content_of_file_HSSL-5beedef526b9e.key
kind: Secret
metadata:
  name: secret-tls
  namespace: default
type: Opaque

and then update your ingress:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: tls-example-ingress
spec:
  tls:
  - hosts:
    - your.amazing.host.com
    secretName: secret-tls
  rules:
    - host: your.amazing.host.com
      http:
        paths:
        - path: /
          backend:
            serviceName: service1
            servicePort: 80

Ingress will use the certs from secret files.



来源:https://stackoverflow.com/questions/53378005/how-to-apply-comodo-ssl-to-kubernetes-ingress

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