2023-03-16 12:40:02 +00:00
|
|
|
# These values are for ENTERPRISE version only and they need to be adapted to specific infrastructure needs
|
|
|
|
# containerSecurityContext is highly related to Kubernetes distribution used/configuration and will probably
|
|
|
|
# need to be customized accordingly
|
|
|
|
|
2023-03-16 07:42:27 +00:00
|
|
|
agentk8sglue:
|
|
|
|
defaultContainerImage: "python:3.9"
|
|
|
|
containerSecurityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsNonRoot: true
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop: ["ALL"]
|
|
|
|
seccompProfile:
|
|
|
|
type: RuntimeDefault
|
|
|
|
containerCustomBashScript: |
|
|
|
|
export HOME=/tmp ;
|
|
|
|
export LOCAL_PYTHON=python3 ;
|
|
|
|
$LOCAL_PYTHON -m pip install clearml-agent{agent_install_args} ;
|
|
|
|
$LOCAL_PYTHON -m clearml_agent execute {default_execution_agent_args} --id {task_id}
|
|
|
|
extraEnvs:
|
|
|
|
- name: CLEARML_K8S_GLUE_START_AGENT_SCRIPT_PATH
|
|
|
|
value: /tmp/__start_agent__.sh
|
|
|
|
|
|
|
|
basePodTemplate:
|
2023-03-20 08:19:43 +00:00
|
|
|
env:
|
|
|
|
- name: HOME
|
|
|
|
value: /tmp
|
2023-03-16 07:42:27 +00:00
|
|
|
containerSecurityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsNonRoot: true
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
capabilities:
|
|
|
|
drop: ["ALL"]
|
|
|
|
seccompProfile:
|
|
|
|
type: RuntimeDefault
|
|
|
|
|
|
|
|
enterpriseFeatures:
|
|
|
|
enabled: true
|