From 01d85d5f7f9e138d97d4cee5009e3c20dd9b4d3f Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Mon, 20 Jan 2025 12:17:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(consul):=20=E4=B8=BA=20Consul=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20TLS=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 ingress 规则中添加 TLS 配置 - 为 consul.kl.suyiiyii.top 域名配置 HTTPS - 使用 cert-manager 生成并管理 TLS 证书 --- consul-ingress.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/consul-ingress.yaml b/consul-ingress.yaml index 88d9f4f..588df24 100644 --- a/consul-ingress.yaml +++ b/consul-ingress.yaml @@ -5,6 +5,10 @@ metadata: annotations: cert-manager.io/cluster-issuer: letsencrypt-prod spec: + tls: + - hosts: + - consul.kl.suyiiyii.top + secretName: consul-tls rules: - host: consul.kl.suyiiyii.top http: @@ -15,4 +19,4 @@ spec: service: name: consul port: - number: 8500 \ No newline at end of file + number: 8500