-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extraChecksd.configDataMap
is not automatically mounted to cluster check runners pods
#1586
Comments
Hello @ajax-khadzhynov-m , Thank you for the report! I was able to reproduce in my environment. Digging further, the nodeAgent:
extraChecksd:
configMap:
name: checks-config
extraConfd:
configMap:
name: confd-config does result in both volume and volumeMount and the custom check running there. This is done by:
This volumeMount is not present on the other hand for the cluster Agent (expected since it doesn't run any checks), and neither on the runner:datadog-operator/internal/controller/datadogagent/component/clusterchecksrunner/default.go Lines 74 to 80 in f517775
I'll check with our team if this is expected behaviour, but in the meantime, you should indeed add a Tracked internally: https://datadoghq.atlassian.net/browse/CECO-1892 |
extraChecksd.configDataMap
is not automatically mounted to podsextraChecksd.configDataMap
is not automatically mounted to cluster check runners pods
@tbavelier thanks for your quick response. |
I understand! As you found, there is a workaround in the meantime by adding in |
Conditions:
I have a
clusterAgent
configured withextraConfd.configDataMap
for YAML configs and aclusterCheckRunner
configured withextraChecksd.configDataMap
for Python scripts.When creating this configuration, I was guided by this docs where we just need to add parameters
extraConfd.configDataMap
extraChecksd.configDataMap
, as I understand that mounts automatically to pods, and nothing else is said about the fact that you need to mount theextraChecksd
configmap separately.My custom resource yaml configuration:
Problem:
As a result, I can see that
extraConfd.configDataMap
was created and mounted, butextraChecksd.configDataMap
was created but not mounted.I tried different approaches, for example, creating both ConfigMaps for one agent, but the result was the same.
ClusterAgent pod yaml output where
confd
exist involume
and involumeMounts
:ClusterCheckRunner pod yaml output where
checksd
exist involume
but absent involumeMounts
:JFYI: ConfigMaps as k8s objects were created successfully in the correct namespace, and there are no errors in the Datadog Operator and agents logs.
Expected:
The ConfigMap created by
extraChecksd.configDataMap
is mounted automatically, just like it is with theextraConfd.configDataMap
parameter.Workaround:
Manually mount the created checksd ConfigMap by adding VolumeMounts in the configuration.
The text was updated successfully, but these errors were encountered: