For Odigos agents to run inside instrumented pod containers, certain files must be mounted into the container. In Kubernetes, these files are mounted under /var/odigos
directory, with subdirectories for each agent. There are few mechanisms to achieve this, which are explained in this document.
spec.containers[].resources
field:odigos profile add mount-method-k8s-host-path
odigos config set mount-method k8s-host-path
instrumentor.mountMethod
to k8s-host-path
, or use helm cli --set instrumentor.mountMethod=k8s-host-path
flag with helm upgrade.
odigos-configuration
ConfigMap in odigos namespace, set the value in the mountMethod
field of config.yaml
to k8s-host-path
.
spec.volumes
field:spec.containers[].volumeMounts
field:odigos config set mount-method k8s-init-container
instrumentor.mountMethod
to k8s-init-container
, or use helm cli --set instrumentor.mountMethod=k8s-init-container
flag with helm upgrade.odigos-configuration
ConfigMap in odigos namespace, set the value in the mountMethod
field of config.yaml
to k8s-init-container
.spec.volumes
field: