mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
Add editable config for k8s Agent (#84)
* Added: editable configuration * Changed: bump up version
This commit is contained in:
parent
e22bd30764
commit
80072c0654
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: clearml-agent
|
name: clearml-agent
|
||||||
description: MLOps platform
|
description: MLOps platform
|
||||||
type: application
|
type: application
|
||||||
version: "1.0.2"
|
version: "1.1.0"
|
||||||
appVersion: "1.21"
|
appVersion: "1.21"
|
||||||
kubeVersion: ">= 1.19.0-0 < 1.25.0-0"
|
kubeVersion: ">= 1.19.0-0 < 1.25.0-0"
|
||||||
home: https://clear.ml
|
home: https://clear.ml
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# clearml-agent
|
# clearml-agent
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
MLOps platform
|
MLOps platform
|
||||||
|
|
||||||
@ -42,9 +42,10 @@ Kubernetes: `>= 1.19.0-0 < 1.25.0-0`
|
|||||||
| agentk8sglue.replicaCount | int | `1` | Glue Agent number of pods |
|
| agentk8sglue.replicaCount | int | `1` | Glue Agent number of pods |
|
||||||
| agentk8sglue.serviceAccountName | string | `"default"` | serviceAccountName for pods spawned to consume ClearML Task |
|
| agentk8sglue.serviceAccountName | string | `"default"` | serviceAccountName for pods spawned to consume ClearML Task |
|
||||||
| agentk8sglue.webServerUrlReference | string | `"https://app.clear.ml"` | Reference to Web server url |
|
| agentk8sglue.webServerUrlReference | string | `"https://app.clear.ml"` | Reference to Web server url |
|
||||||
| clearml | object | `{"agentk8sglueKey":"ACCESSKEY","agentk8sglueSecret":"SECRETKEY"}` | ClearMl generic configurations |
|
| clearml | object | `{"agentk8sglueKey":"ACCESSKEY","agentk8sglueSecret":"SECRETKEY","clearmlConfig":"sdk {\n}"}` | ClearMl generic configurations |
|
||||||
| clearml.agentk8sglueKey | string | `"ACCESSKEY"` | Agent k8s Glue basic auth key |
|
| clearml.agentk8sglueKey | string | `"ACCESSKEY"` | Agent k8s Glue basic auth key |
|
||||||
| clearml.agentk8sglueSecret | string | `"SECRETKEY"` | Agent k8s Glue basic auth secret |
|
| clearml.agentk8sglueSecret | string | `"SECRETKEY"` | Agent k8s Glue basic auth secret |
|
||||||
|
| clearml.clearmlConfig | string | `"sdk {\n}"` | ClearML configuration file |
|
||||||
| imageCredentials | object | `{"email":"someone@host.com","enabled":false,"existingSecret":"","password":"pwd","registry":"docker.io","username":"someone"}` | Private image registry configuration |
|
| imageCredentials | object | `{"email":"someone@host.com","enabled":false,"existingSecret":"","password":"pwd","registry":"docker.io","username":"someone"}` | Private image registry configuration |
|
||||||
| imageCredentials.email | string | `"someone@host.com"` | Email |
|
| imageCredentials.email | string | `"someone@host.com"` | Email |
|
||||||
| imageCredentials.enabled | bool | `false` | Use private authentication mode |
|
| imageCredentials.enabled | bool | `false` | Use private authentication mode |
|
||||||
|
|||||||
@ -47,11 +47,17 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: k8s-glue
|
- name: k8s-glue
|
||||||
image: "{{ .Values.agentk8sglue.image.repository }}:{{ .Values.agentk8sglue.image.tag }}"
|
image: "{{ .Values.agentk8sglue.image.repository }}:{{ .Values.agentk8sglue.image.tag }}"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/bin/bash", "-c", "export PATH=$PATH:$HOME/bin; source /root/.bashrc && /root/entrypoint.sh"]
|
command: ["/bin/bash", "-c", "export PATH=$PATH:$HOME/bin; source /root/.bashrc && /root/entrypoint.sh"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: k8sagent-pod-template
|
- name: k8sagent-pod-template
|
||||||
mountPath: /root/template
|
mountPath: /root/template
|
||||||
|
{{ if .Values.clearml.clearmlConfig }}
|
||||||
|
- name: k8sagent-clearml-conf-volume
|
||||||
|
mountPath: /root/clearml.conf
|
||||||
|
subPath: clearml.conf
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: CLEARML_API_HOST
|
- name: CLEARML_API_HOST
|
||||||
value: "{{.Values.agentk8sglue.apiServerUrlReference}}"
|
value: "{{.Values.agentk8sglue.apiServerUrlReference}}"
|
||||||
@ -89,3 +95,11 @@ spec:
|
|||||||
- name: k8sagent-pod-template
|
- name: k8sagent-pod-template
|
||||||
configMap:
|
configMap:
|
||||||
name: k8sagent-pod-template
|
name: k8sagent-pod-template
|
||||||
|
{{ if .Values.clearml.clearmlConfig }}
|
||||||
|
- name: k8sagent-clearml-conf-volume
|
||||||
|
secret:
|
||||||
|
secretName: clearml-agent-conf
|
||||||
|
items:
|
||||||
|
- key: clearml.conf
|
||||||
|
path: clearml.conf
|
||||||
|
{{ end }}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
agentk8sglue_key: {{ .Values.clearml.agentk8sglueKey | b64enc }}
|
agentk8sglue_key: {{ .Values.clearml.agentk8sglueKey | b64enc }}
|
||||||
agentk8sglue_secret: {{ .Values.clearml.agentk8sglueSecret | b64enc }}
|
agentk8sglue_secret: {{ .Values.clearml.agentk8sglueSecret | b64enc }}
|
||||||
|
clearml.conf: {{ .Values.clearml.clearmlConfig | b64enc }}
|
||||||
---
|
---
|
||||||
{{- if .Values.imageCredentials.enabled }}
|
{{- if .Values.imageCredentials.enabled }}
|
||||||
{{- if not .Values.imageCredentials.existingSecret }}
|
{{- if not .Values.imageCredentials.existingSecret }}
|
||||||
|
|||||||
@ -19,6 +19,10 @@ clearml:
|
|||||||
agentk8sglueKey: "ACCESSKEY"
|
agentk8sglueKey: "ACCESSKEY"
|
||||||
# -- Agent k8s Glue basic auth secret
|
# -- Agent k8s Glue basic auth secret
|
||||||
agentk8sglueSecret: "SECRETKEY"
|
agentk8sglueSecret: "SECRETKEY"
|
||||||
|
# -- ClearML configuration file
|
||||||
|
clearmlConfig: |-
|
||||||
|
sdk {
|
||||||
|
}
|
||||||
|
|
||||||
# -- This agent will spawn queued experiments in new pods, a good use case is to combine this with
|
# -- This agent will spawn queued experiments in new pods, a good use case is to combine this with
|
||||||
# GPU autoscaling nodes.
|
# GPU autoscaling nodes.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user