From 24e455304cdd6a5018c74c9781a20877076960da Mon Sep 17 00:00:00 2001 From: "jiachuan.zhu" Date: Tue, 19 Apr 2022 20:01:57 +0800 Subject: [PATCH] Add ingress annotations (#9492) --- deploy/kubernetes/dolphinscheduler/templates/ingress.yaml | 4 ++++ deploy/kubernetes/dolphinscheduler/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/deploy/kubernetes/dolphinscheduler/templates/ingress.yaml b/deploy/kubernetes/dolphinscheduler/templates/ingress.yaml index 0fa1a8b5c9..e4b2ec337f 100644 --- a/deploy/kubernetes/dolphinscheduler/templates/ingress.yaml +++ b/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 }} diff --git a/deploy/kubernetes/dolphinscheduler/values.yaml b/deploy/kubernetes/dolphinscheduler/values.yaml index a408bcdfb0..f1dd6b0c9a 100644 --- a/deploy/kubernetes/dolphinscheduler/values.yaml +++ b/deploy/kubernetes/dolphinscheduler/values.yaml @@ -403,6 +403,7 @@ ingress: enabled: false host: "dolphinscheduler.org" path: "/dolphinscheduler" + annotations: {} tls: enabled: false secretName: "dolphinscheduler-tls"