K8S 集群配置 https 证书
https
·
创建 secret,选择 TLS
选择对应的命名空间
上传准备好的 https 的 key 和 certificate
打开需要添加 https 的 ingress 配置,选择 certificates
选择上一步配置好的 https certificates
案例:
下面是 k8s 部署 minio 的文章
https://blog.csdn.net/weixin_42555971/article/details/125020626
部署后,需要在 ingress 上加上 https 配置
apiIngress:
enabled: true
ingressClassName: nginx
hostname: share-minio-prod.gd-xxx.com
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 5000M
tls: true
extraTls:
- hosts:
- share-minio-prod.gd-xxx.com
secretName: minio-share-https
apiIngress.tls :等于 true,启用 tls 配置
apiIngress.hosts.secretName:配置好的 secret
更多推荐
已为社区贡献36条内容
所有评论(0)