mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
add image pull secret + add ingress path (#55)
This commit is contained in:
parent
fa3739b643
commit
049e609ce0
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: clearml
|
name: clearml
|
||||||
description: MLOps platform
|
description: MLOps platform
|
||||||
type: application
|
type: application
|
||||||
version: "3.6.0"
|
version: "3.7.0"
|
||||||
appVersion: "1.2.0"
|
appVersion: "1.2.0"
|
||||||
home: https://clear.ml
|
home: https://clear.ml
|
||||||
icon: https://raw.githubusercontent.com/allegroai/clearml/master/docs/clearml-logo.svg
|
icon: https://raw.githubusercontent.com/allegroai/clearml/master/docs/clearml-logo.svg
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# ClearML Ecosystem for Kubernetes
|
# ClearML Ecosystem for Kubernetes
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
MLOps platform
|
MLOps platform
|
||||||
|
|
||||||
@ -282,14 +282,19 @@ For detailed instructions, see the [Optional Configuration](https://github.com/a
|
|||||||
| fileserver.tolerations | list | `[]` | |
|
| fileserver.tolerations | list | `[]` | |
|
||||||
| ingress.annotations | object | `{}` | |
|
| ingress.annotations | object | `{}` | |
|
||||||
| ingress.api.annotations | object | `{}` | |
|
| ingress.api.annotations | object | `{}` | |
|
||||||
|
| ingress.api.enabled | bool | `false` | |
|
||||||
| ingress.api.hostName | string | `"api.clearml.127-0-0-1.nip.io"` | |
|
| ingress.api.hostName | string | `"api.clearml.127-0-0-1.nip.io"` | |
|
||||||
|
| ingress.api.path | string | `"/"` | |
|
||||||
| ingress.api.tlsSecretName | string | `""` | |
|
| ingress.api.tlsSecretName | string | `""` | |
|
||||||
| ingress.app.annotations | object | `{}` | |
|
| ingress.app.annotations | object | `{}` | |
|
||||||
|
| ingress.app.enabled | bool | `false` | |
|
||||||
| ingress.app.hostName | string | `"app.clearml.127-0-0-1.nip.io"` | |
|
| ingress.app.hostName | string | `"app.clearml.127-0-0-1.nip.io"` | |
|
||||||
|
| ingress.app.path | string | `"/"` | |
|
||||||
| ingress.app.tlsSecretName | string | `""` | |
|
| ingress.app.tlsSecretName | string | `""` | |
|
||||||
| ingress.enabled | bool | `false` | |
|
|
||||||
| ingress.files.annotations | object | `{}` | |
|
| ingress.files.annotations | object | `{}` | |
|
||||||
|
| ingress.files.enabled | bool | `false` | |
|
||||||
| ingress.files.hostName | string | `"files.clearml.127-0-0-1.nip.io"` | |
|
| ingress.files.hostName | string | `"files.clearml.127-0-0-1.nip.io"` | |
|
||||||
|
| ingress.files.path | string | `"/"` | |
|
||||||
| ingress.files.tlsSecretName | string | `""` | |
|
| ingress.files.tlsSecretName | string | `""` | |
|
||||||
| ingress.name | string | `"clearml-server-ingress"` | |
|
| ingress.name | string | `"clearml-server-ingress"` | |
|
||||||
| mongodb.architecture | string | `"standalone"` | |
|
| mongodb.architecture | string | `"standalone"` | |
|
||||||
@ -318,6 +323,7 @@ For detailed instructions, see the [Optional Configuration](https://github.com/a
|
|||||||
| secret.credentials.tests.accessKey | string | `"ENP39EQM4SLACGD5FXB7"` | Set for tests_user_key field |
|
| secret.credentials.tests.accessKey | string | `"ENP39EQM4SLACGD5FXB7"` | Set for tests_user_key field |
|
||||||
| secret.credentials.tests.secretKey | string | `"lPcm0imbcBZ8mwgO7tpadutiS3gnJD05x9j7afwXPS35IKbpiQ"` | Set for tests_user_secret field |
|
| secret.credentials.tests.secretKey | string | `"lPcm0imbcBZ8mwgO7tpadutiS3gnJD05x9j7afwXPS35IKbpiQ"` | Set for tests_user_secret field |
|
||||||
| secret.httpSession | string | `"9Tw20RbhJ1bLBiHEOWXvhplKGUbTgLzAtwFN2oLQvWwS0uRpD5"` | Set for http_session field |
|
| secret.httpSession | string | `"9Tw20RbhJ1bLBiHEOWXvhplKGUbTgLzAtwFN2oLQvWwS0uRpD5"` | Set for http_session field |
|
||||||
|
| webserver.additionalConfigs | object | `{}` | |
|
||||||
| webserver.affinity | object | `{}` | |
|
| webserver.affinity | object | `{}` | |
|
||||||
| webserver.extraEnvs | list | `[]` | |
|
| webserver.extraEnvs | list | `[]` | |
|
||||||
| webserver.image.pullPolicy | string | `"IfNotPresent"` | |
|
| webserver.image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
|
@ -140,3 +140,17 @@ Create the name of the Files service to use
|
|||||||
{{- printf "%s%s%s%s" "http://" (include "clearml.fullname" .) "-fileserver:" (.Values.fileserver.service.port | toString) }}
|
{{- printf "%s%s%s%s" "http://" (include "clearml.fullname" .) "-fileserver:" (.Values.fileserver.service.port | toString) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return the proper Docker Image Registry Secret Names
|
||||||
|
*/}}
|
||||||
|
{{- define "clearml.imagePullSecrets" -}}
|
||||||
|
{{- if .Values.global }}
|
||||||
|
{{- if .Values.global.imagePullSecrets }}
|
||||||
|
imagePullSecrets:
|
||||||
|
{{- range .Values.global.imagePullSecrets }}
|
||||||
|
- name: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
@ -15,18 +15,18 @@ data:
|
|||||||
- name: {{ .name }}
|
- name: {{ .name }}
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .name }}
|
claimName: {{ .name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- resources:
|
- resources:
|
||||||
{{- toYaml .Values.agentk8sglue.podTemplate.resources | nindent 10 }}
|
{{- toYaml .Values.agentk8sglue.podTemplate.resources | nindent 10 }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 10022
|
- containerPort: 10022
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- range .Values.agentk8sglue.podTemplate.volumes }}
|
{{- range .Values.agentk8sglue.podTemplate.volumes }}
|
||||||
- mountPath: {{ .path }}
|
- mountPath: {{ .path }}
|
||||||
name: {{ .name }}
|
name: {{ .name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: CLEARML_API_HOST
|
- name: CLEARML_API_HOST
|
||||||
value: "http://{{ include "clearml.fullname" . }}-apiserver:{{ .Values.apiserver.service.port }}"
|
value: "http://{{ include "clearml.fullname" . }}-apiserver:{{ .Values.apiserver.service.port }}"
|
||||||
- name: CLEARML_WEB_HOST
|
- name: CLEARML_WEB_HOST
|
||||||
|
13
charts/clearml/templates/configmap-webserver.yaml
Executable file
13
charts/clearml/templates/configmap-webserver.yaml
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
{{- if .Values.webserver.additionalConfigs -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: "{{ include "clearml.fullname" . }}-webserver-configmap"
|
||||||
|
labels:
|
||||||
|
{{- include "clearml.labels" . | nindent 4 }}
|
||||||
|
data:
|
||||||
|
{{- range $key, $val := .Values.webserver.additionalConfigs }}
|
||||||
|
{{ $key }}: |
|
||||||
|
{{- $val | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
@ -19,6 +19,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "clearml.selectorLabelsApiServer" . | nindent 8 }}
|
{{- include "clearml.selectorLabelsApiServer" . | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- include "clearml.imagePullSecrets" . | indent 6 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.apiserver.image.repository }}:{{ .Values.apiserver.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.apiserver.image.repository }}:{{ .Values.apiserver.image.tag | default .Chart.AppVersion }}"
|
||||||
|
@ -22,6 +22,7 @@ spec:
|
|||||||
- name: fileserver-data
|
- name: fileserver-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ include "clearml.fullname" . }}-fileserver-data
|
claimName: {{ include "clearml.fullname" . }}-fileserver-data
|
||||||
|
{{- include "clearml.imagePullSecrets" . | indent 6 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.fileserver.image.repository }}:{{ .Values.fileserver.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.fileserver.image.repository }}:{{ .Values.fileserver.image.tag | default .Chart.AppVersion }}"
|
||||||
|
@ -18,6 +18,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "clearml.selectorLabelsWebServer" . | nindent 8 }}
|
{{- include "clearml.selectorLabelsWebServer" . | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- include "clearml.imagePullSecrets" . | indent 6 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.webserver.image.repository }}:{{ .Values.webserver.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.webserver.image.repository }}:{{ .Values.webserver.image.tag | default .Chart.AppVersion }}"
|
||||||
@ -38,6 +39,11 @@ spec:
|
|||||||
- curl
|
- curl
|
||||||
- -X OPTIONS
|
- -X OPTIONS
|
||||||
- http://0.0.0.0:80/
|
- http://0.0.0.0:80/
|
||||||
|
{{- if .Values.webserver.additionalConfigs }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: webserver-config
|
||||||
|
mountPath: /opt/clearml/config
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: NGINX_APISERVER_ADDRESS
|
- name: NGINX_APISERVER_ADDRESS
|
||||||
value: "http://{{ include "clearml.fullname" . }}-apiserver:{{ .Values.apiserver.service.port }}"
|
value: "http://{{ include "clearml.fullname" . }}-apiserver:{{ .Values.apiserver.service.port }}"
|
||||||
@ -50,6 +56,12 @@ spec:
|
|||||||
- webserver
|
- webserver
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.webserver.resources | nindent 12 }}
|
{{- toYaml .Values.webserver.resources | nindent 12 }}
|
||||||
|
{{- if .Values.webserver.additionalConfigs }}
|
||||||
|
volumes:
|
||||||
|
- name: webserver-config
|
||||||
|
configMap:
|
||||||
|
name: "{{ include "clearml.fullname" . }}-webserver-configmap"
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.webserver.nodeSelector }}
|
{{- with .Values.webserver.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@ -61,4 +73,4 @@ spec:
|
|||||||
{{- with .Values.webserver.tolerations }}
|
{{- with .Values.webserver.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.api.enabled -}}
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
@ -29,7 +29,7 @@ spec:
|
|||||||
- host: {{ .Values.ingress.api.hostName }}
|
- host: {{ .Values.ingress.api.hostName }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: "/"
|
- path: {{ .Values.ingress.api.path }}
|
||||||
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.app.enabled -}}
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
@ -28,7 +28,7 @@ spec:
|
|||||||
- host: {{ .Values.ingress.app.hostName }}
|
- host: {{ .Values.ingress.app.hostName }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: "/"
|
- path: {{ .Values.ingress.app.path }}
|
||||||
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.files.enabled -}}
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
@ -28,7 +28,7 @@ spec:
|
|||||||
- host: {{ .Values.ingress.files.hostName }}
|
- host: {{ .Values.ingress.files.hostName }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: "/"
|
- path: {{ .Values.ingress.files.path }}
|
||||||
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{ if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
12
charts/clearml/values.yaml
Normal file → Executable file
12
charts/clearml/values.yaml
Normal file → Executable file
@ -1,21 +1,29 @@
|
|||||||
|
# global:
|
||||||
|
# imagePullSecrets:
|
||||||
|
# - docker-cfg
|
||||||
clearml:
|
clearml:
|
||||||
defaultCompany: "d1bd92a3b039400cbafc60a7a5b1e52b"
|
defaultCompany: "d1bd92a3b039400cbafc60a7a5b1e52b"
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
|
||||||
name: clearml-server-ingress
|
name: clearml-server-ingress
|
||||||
annotations: {}
|
annotations: {}
|
||||||
app:
|
app:
|
||||||
|
enabled: false
|
||||||
hostName: "app.clearml.127-0-0-1.nip.io"
|
hostName: "app.clearml.127-0-0-1.nip.io"
|
||||||
tlsSecretName: ""
|
tlsSecretName: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
path: "/"
|
||||||
api:
|
api:
|
||||||
|
enabled: false
|
||||||
hostName: "api.clearml.127-0-0-1.nip.io"
|
hostName: "api.clearml.127-0-0-1.nip.io"
|
||||||
tlsSecretName: ""
|
tlsSecretName: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
path: "/"
|
||||||
files:
|
files:
|
||||||
|
enabled: false
|
||||||
hostName: "files.clearml.127-0-0-1.nip.io"
|
hostName: "files.clearml.127-0-0-1.nip.io"
|
||||||
tlsSecretName: ""
|
tlsSecretName: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
path: "/"
|
||||||
|
|
||||||
secret:
|
secret:
|
||||||
# -- Set for http_session field
|
# -- Set for http_session field
|
||||||
@ -175,6 +183,8 @@ webserver:
|
|||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
additionalConfigs: {}
|
||||||
|
|
||||||
agentservices:
|
agentservices:
|
||||||
enabled: false
|
enabled: false
|
||||||
clearmlHostIp: null
|
clearmlHostIp: null
|
||||||
|
Loading…
Reference in New Issue
Block a user