datadog-agent icon indicating copy to clipboard operation
datadog-agent copied to clipboard

Why is lowercase cluster name required?

Open walkafwalka opened this issue 6 years ago • 3 comments

Error: template: datadog/templates/daemonset.yaml:88:12: executing "datadog/templates/daemonset.yaml" at <include "container-agent" .>: error calling include: template: datadog/templates/container-agent.yaml:16:8: executing "container-agent" at <include "containers-common-env" .>: error calling include: template: datadog/templates/containers-common-env.yaml:17:4: executing "containers-common-env" at <fail "Your `clusterName` isn’t valid. It must be dot-separated tokens where a token start with a lowercase letter followed by up to 39 lowercase letters, numbers, or hyphens and cannot end with a hyphen.">: error calling fail: Your `clusterName` isn’t valid. It must be dot-separated tokens where a token start with a lowercase letter followed by up to 39 lowercase letters, numbers, or hyphens and cannot end with a hyphen.

Describe what happened:

The Datadog agent requires a clustername with all lowercase characters. Is this a requirement due to a limitation? Unforunately, I cannot change all of my EKS clusters to lowercase.

walkafwalka avatar Nov 22 '20 17:11 walkafwalka

Hey @walkafwalka

Thanks for reporting this. Helm is complaining about the value you are setting in your values.yaml, so you should be able to change it, even though your real cluster names have uppercase characters in their names.

Simwar avatar Dec 07 '20 16:12 Simwar

Is there a specific reason for this validation? It's common for GKE clusters to have an underscore in their (kube_context) name.

I understand that clusterName: is just a canonical name in this context, but having it differ here versus the actual kubernetes context name could/would create confusion for users within the Datadog UI.

matthewhembree avatar Dec 17 '20 22:12 matthewhembree

This issue has been automatically marked as stale because it has not had activity in the past 15 days.

It will be closed in 30 days if no further activity occurs. If this issue is still relevant, adding a comment will keep it open. Also, you can always reopen the issue if you missed the window.

Thank you for your contributions!

dd-octo-sts avatar Oct 21 '25 16:10 dd-octo-sts