2021-07-07 07:04:15 +00:00
|
|
|
{{- if .Values.ingress.enabled -}}
|
|
|
|
{{- $fullName := include "clearml.fullname" . -}}
|
2021-09-14 13:43:10 +00:00
|
|
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
2021-07-07 07:04:15 +00:00
|
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
|
|
{{- else -}}
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
{{- end }}
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2021-09-14 13:43:10 +00:00
|
|
|
name: {{ include "clearml.fullname" . }}-app
|
2021-07-07 07:04:15 +00:00
|
|
|
labels:
|
|
|
|
{{- include "clearml.labels" . | nindent 4 }}
|
|
|
|
{{- with .Values.ingress.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
{{- if .Values.ingress.tls.secretName }}
|
|
|
|
tls:
|
|
|
|
- hosts:
|
2021-08-25 12:49:43 +00:00
|
|
|
- "{{ .Values.ingress.hostPrefixApp }}{{ .Values.ingress.host }}"
|
2021-07-07 07:04:15 +00:00
|
|
|
secretName: {{ .Values.ingress.tls.secretName }}
|
|
|
|
{{- end }}
|
|
|
|
rules:
|
2021-08-12 09:02:26 +00:00
|
|
|
- host: "{{ .Values.ingress.hostPrefixApp }}{{ .Values.ingress.host }}"
|
2021-07-07 07:04:15 +00:00
|
|
|
http:
|
|
|
|
paths:
|
2021-08-12 09:02:26 +00:00
|
|
|
- path: "/"
|
|
|
|
pathType: Prefix
|
2021-07-07 07:04:15 +00:00
|
|
|
backend:
|
|
|
|
serviceName: {{ include "clearml.fullname" . }}-webserver
|
|
|
|
servicePort: {{ .Values.webserver.service.port }}
|
|
|
|
{{- end }}
|