feat(consul): 添加注册表暴露控制功能
- 在 templates/consul-ingress.yaml 中添加了 registry_expose 条件判断 - 在 values.yaml 中添加了 registry_expose 配置项,默认为 false
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user