如何将Comodo SSL应用于Kubernetes Ingress? [英] How to apply Comodo SSL to Kubernetes Ingress?
本文介绍了如何将Comodo SSL应用于Kubernetes Ingress?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们购买了Komodo SSL证书,其中包含5个文件:
We purchased a Komodo SSL certificate, which come in 5 files:
我正在寻找有关如何将其应用到我们的Kubernetes Ingress的指南.
I am looking for a guide for how to apply it on our Kubernetes Ingress.
推荐答案
如文档:
您需要使用证书创建秘密:
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
然后更新您的入口:
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将使用秘密文件中的证书.
Ingress will use the certs from secret files.
这篇关于如何将Comodo SSL应用于Kubernetes Ingress?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文