mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 09:06:48 +00:00
ca54cb570f
* Changed: remove unused status * Changed: image tags refactoring * Changed: Images references refactoring * Added: serving ingresses * Added: grafana ingress * Added: grafana ingress * Changed: chart version bump * Changed: maintainers * Added: value comments * Fixed: typo * Fixed: typos
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
{{- if .Values.clearml_serving_inference.ingress.enabled -}}
|
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
{{- else -}}
|
|
apiVersion: extensions/v1beta1
|
|
{{- end }}
|
|
kind: Ingress
|
|
metadata:
|
|
name: clearml-serving-inference
|
|
labels:
|
|
clearml.serving.service: clearml-serving-inference
|
|
annotations:
|
|
{{- toYaml .Values.clearml_serving_inference.ingress.annotations | nindent 4 }}
|
|
spec:
|
|
{{- if .Values.clearml_serving_inference.ingress.tlsSecretName }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.clearml_serving_inference.ingress.hostName }}
|
|
secretName: {{ .Values.clearml_serving_inference.ingress.tlsSecretName }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.clearml_serving_inference.ingress.hostName }}
|
|
http:
|
|
paths:
|
|
- path: {{ .Values.clearml_serving_inference.ingress.path }}
|
|
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: clearml-serving-inference
|
|
port:
|
|
number: 8080
|
|
{{ else }}
|
|
backend:
|
|
serviceName: clearml-serving-inference
|
|
servicePort: 8080
|
|
{{ end }}
|
|
{{- end }}
|