From c23be86a2ad60fdfe4c2e8bbada2757dd1404a01 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Mon, 20 Jan 2025 12:15:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(network):=20=E6=B7=BB=E5=8A=A0=20Consul=20?= =?UTF-8?q?Ingress=20=E5=B9=B6=E6=9B=B4=E6=96=B0=20Consul=20=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 consul-ingress.yaml 文件,创建 Consul Ingress 资源 - 更新 consul-service.yaml 文件,将选择器从 io.kompose.service 改为 app --- consul-ingress.yaml | 18 ++++++++++++++++++ consul-service.yaml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 consul-ingress.yaml diff --git a/consul-ingress.yaml b/consul-ingress.yaml new file mode 100644 index 0000000..88d9f4f --- /dev/null +++ b/consul-ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: consul-ingress + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod +spec: + rules: + - host: consul.kl.suyiiyii.top + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: consul + port: + number: 8500 \ No newline at end of file diff --git a/consul-service.yaml b/consul-service.yaml index ba02fd6..181a756 100644 --- a/consul-service.yaml +++ b/consul-service.yaml @@ -12,4 +12,4 @@ spec: protocol: UDP targetPort: 8600 selector: - io.kompose.service: consul + app: consul