feat(consul): 添加注册表暴露控制功能

- 在 templates/consul-ingress.yaml 中添加了 registry_expose 条件判断
- 在 values.yaml 中添加了 registry_expose 配置项,默认为 false
This commit is contained in:
suyiiyii 2025-01-21 22:05:04 +08:00
parent 3c9701dab3
commit 019c3da82c
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85
2 changed files with 5 additions and 1 deletions

View File

@ -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
number: 8500
{{- end }}

View File

@ -1,4 +1,5 @@
registry_expose: false
registry: ghcr.io
tag: "250121-1414be4"
deployments: