Browse Source

Add ingress annotations (#9492)

jiachuan.zhu 3 years ago
parent
commit
24e455304c

+ 4 - 0
deploy/kubernetes/dolphinscheduler/templates/ingress.yaml

@@ -28,6 +28,10 @@ metadata:
   labels:
     app.kubernetes.io/name: {{ include "dolphinscheduler.fullname" . }}
     {{- include "dolphinscheduler.common.labels" . | nindent 4 }}
+  {{- with .Values.ingress.annotations }}
+  annotations:
+    {{- toYaml . | nindent 4 }}
+  {{- end }}
 spec:
   rules:
   - host: {{ .Values.ingress.host }}

+ 1 - 0
deploy/kubernetes/dolphinscheduler/values.yaml

@@ -403,6 +403,7 @@ ingress:
   enabled: false
   host: "dolphinscheduler.org"
   path: "/dolphinscheduler"
+  annotations: {}
   tls:
     enabled: false
     secretName: "dolphinscheduler-tls"