feat(consul): 为 Consul 添加 TLS 支持
- 在 ingress 规则中添加 TLS 配置 - 为 consul.kl.suyiiyii.top 域名配置 HTTPS - 使用 cert-manager 生成并管理 TLS 证书
This commit is contained in:
parent
c86810dcfe
commit
01d85d5f7f
@ -5,6 +5,10 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
spec:
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- consul.kl.suyiiyii.top
|
||||||
|
secretName: consul-tls
|
||||||
rules:
|
rules:
|
||||||
- host: consul.kl.suyiiyii.top
|
- host: consul.kl.suyiiyii.top
|
||||||
http:
|
http:
|
||||||
@ -15,4 +19,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: consul
|
name: consul
|
||||||
port:
|
port:
|
||||||
number: 8500
|
number: 8500
|
||||||
|
Loading…
x
Reference in New Issue
Block a user