|
|
@ -15,7 +15,13 @@ |
|
|
|
# limitations under the License. |
|
|
|
# limitations under the License. |
|
|
|
# |
|
|
|
# |
|
|
|
{{- if .Values.ingress.enabled }} |
|
|
|
{{- if .Values.ingress.enabled }} |
|
|
|
|
|
|
|
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }} |
|
|
|
|
|
|
|
apiVersion: networking.k8s.io/v1 |
|
|
|
|
|
|
|
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" }} |
|
|
|
apiVersion: networking.k8s.io/v1beta1 |
|
|
|
apiVersion: networking.k8s.io/v1beta1 |
|
|
|
|
|
|
|
{{- else }} |
|
|
|
|
|
|
|
apiVersion: extensions/v1beta1 |
|
|
|
|
|
|
|
{{- end }} |
|
|
|
kind: Ingress |
|
|
|
kind: Ingress |
|
|
|
metadata: |
|
|
|
metadata: |
|
|
|
name: {{ include "dolphinscheduler.fullname" . }} |
|
|
|
name: {{ include "dolphinscheduler.fullname" . }} |
|
|
@ -30,14 +36,22 @@ spec: |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
- path: {{ .Values.ingress.path }} |
|
|
|
- path: {{ .Values.ingress.path }} |
|
|
|
backend: |
|
|
|
backend: |
|
|
|
|
|
|
|
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }} |
|
|
|
|
|
|
|
service: |
|
|
|
|
|
|
|
name: {{ include "dolphinscheduler.fullname" . }}-api |
|
|
|
|
|
|
|
port: |
|
|
|
|
|
|
|
name: api-port |
|
|
|
|
|
|
|
{{- else }} |
|
|
|
serviceName: {{ include "dolphinscheduler.fullname" . }}-api |
|
|
|
serviceName: {{ include "dolphinscheduler.fullname" . }}-api |
|
|
|
servicePort: tcp-port |
|
|
|
servicePort: api-port |
|
|
|
|
|
|
|
{{- end }} |
|
|
|
|
|
|
|
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }} |
|
|
|
|
|
|
|
pathType: Prefix |
|
|
|
|
|
|
|
{{- end }} |
|
|
|
{{- if .Values.ingress.tls.enabled }} |
|
|
|
{{- if .Values.ingress.tls.enabled }} |
|
|
|
tls: |
|
|
|
tls: |
|
|
|
hosts: |
|
|
|
hosts: |
|
|
|
{{- range .Values.ingress.tls.hosts }} |
|
|
|
- {{ .Values.ingress.host }} |
|
|
|
- {{ . | quote }} |
|
|
|
|
|
|
|
{{- end }} |
|
|
|
|
|
|
|
secretName: {{ .Values.ingress.tls.secretName }} |
|
|
|
secretName: {{ .Values.ingress.tls.secretName }} |
|
|
|
{{- end }} |
|
|
|
{{- end }} |
|
|
|
{{- end }} |
|
|
|
{{- end }} |