From 019c3da82c2c5ada8bcb96488e1e6c7295169b6e Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Tue, 21 Jan 2025 22:05:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(consul):=20=E6=B7=BB=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E8=A1=A8=E6=9A=B4=E9=9C=B2=E6=8E=A7=E5=88=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 templates/consul-ingress.yaml 中添加了 registry_expose 条件判断 - 在 values.yaml 中添加了 registry_expose 配置项,默认为 false --- templates/consul-ingress.yaml | 5 ++++- values.yaml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/consul-ingress.yaml b/templates/consul-ingress.yaml index 01a1fe1..64e9992 100644 --- a/templates/consul-ingress.yaml +++ b/templates/consul-ingress.yaml @@ -1,3 +1,4 @@ +{{- if .Values.registry_expose }} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: @@ -36,4 +37,6 @@ spec: service: name: consul port: - number: 8500 \ No newline at end of file + number: 8500 + +{{- end }} \ No newline at end of file diff --git a/values.yaml b/values.yaml index 2562db2..4687ea1 100644 --- a/values.yaml +++ b/values.yaml @@ -1,4 +1,5 @@ +registry_expose: false registry: ghcr.io tag: "250121-1414be4" deployments: