Skip to content

LPM service pod regex

In our use case, we need to add our Virtual Kubelets to the cluster. After deploying, we update the L2SM network deployment, and the following problem arises. The LPM service pod need a node name that does not start with a digit. But in our use case, we use the MAC address as a name, which could start with a digit.

The Service "97985e1b-0671-de39-1b11-7b1c445eca88-lpm" is invalid: metadata.name: Invalid value: "97985e1b-0671-de39-1b11-7b1c445eca88-lpm": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')

Our question is whether this is needed for your LPM application and if this could be adjusted. Because in Kubernetes, services are allowed to start with digits when using a different RFC label

[https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names]

Edited by Chiel van Diepen