In process install of my kubernetes cluster, I ran into the problem of naming pods.
How to add to the name of the container the name of the node on which it is was deployed?
Exemple of my Daemon Set yaml:
....
spec:
template:
spec:
name: CONTAINER-NAME-HOST-NAME
....
Naming convention falls under the RFC 1123 definition of a DNS label.
Starting from v1.4 names must not be longer than 253 characters.
Name should be expressed by the regular expression: [a-z0-9]([-a-z0-9]*[a-z0-9])?
Underscore "_" is not allowed.
You can see applicable code in GitHub for checking container names, defining acceptable names.