Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Can Hostnames be used Instead of IP Addresses for Kubernetes Nodes in the Cluster?
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
For BareOS clusters, traditionally, nodes within a PMK cluster displays IP addresses instead of the hostname in the NAME column.
Is there an option to use hostnames instead of IP Addresses?
With IP
xxxxxxxxxxNAME STATUS ROLES AGE VERSION10.200.17.10 Ready worker 191d v1.17.910.200.17.11 Ready worker 191d v1.17.910.200.17.50 Ready master 191d v1.17.910.200.17.51 Ready master 191d v1.17.910.200.17.52 Ready master 191d v1.17.9Environment
- Platform9 Managed Kubernetes - v5.2, K8s v1.20 and above
Answer
- Starting v5.2 and K8s v1.20, users building BareOS clusters within IPv4 environments that have DNS Resolution configured for all nodes can now opt to create clusters using the Node's Hostname or IP address via U/I.
- From an API perspective, the useHostname API field has been added to the cluster creation specification. Setting useHostname to true when creating a cluster will cause all nodes in the cluster to be registered using their hostname instead of IP address.
With Hostname
xxxxxxxxxxNAME STATUS ROLES AGE VERSIONddu-master1 Ready master 131d v1.21.3ddu-master2 Ready master 131d v1.21.3ddu-master3 Ready master 131d v1.21.3ddu-worker1 Ready worker 131d v1.21.3ddu-worker2 Ready worker 131d v1.21.3This parameter is ignored when deploying clusters on public clouds - AWS, Azure, and when deploying BareOS IPv6 clusters.
It is not possible to edit an existing cluster to start using hostnames instead of IPs.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message