feat(consul): 添加注册表暴露控制功能
- 在 templates/consul-ingress.yaml 中添加了 registry_expose 条件判断 - 在 values.yaml 中添加了 registry_expose 配置项,默认为 false
This commit is contained in:
parent
3c9701dab3
commit
019c3da82c
@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.registry_expose }}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@ -37,3 +38,5 @@ spec:
|
|||||||
name: consul
|
name: consul
|
||||||
port:
|
port:
|
||||||
number: 8500
|
number: 8500
|
||||||
|
|
||||||
|
{{- end }}
|
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
registry_expose: false
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
tag: "250121-1414be4"
|
tag: "250121-1414be4"
|
||||||
deployments:
|
deployments:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user