mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Invalid node names when deploying with Heat
OpenStack Heat templates create Kubernetes nodes with invalid hostnames. Capital letters are not allowed in the hostnames: Unable to register node "kubernetes-node-6s8OizYe" with API server: Node "kubernetes-node-6s8OizYe" is invalid: metadata.name: Invalid value: "kubernetes-node-6s8OizYe": must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (e.g. 'example.com') This patch prevents Heat generating hostnames that contain capital letters.
This commit is contained in:
parent
13424d874b
commit
307a7556da
@ -252,6 +252,9 @@ resources:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 8
|
||||
character_classes:
|
||||
- class: lowercase
|
||||
- class: digits
|
||||
|
||||
kube_minion:
|
||||
type: OS::Nova::Server
|
||||
|
Loading…
Reference in New Issue
Block a user