Canonical Kubernetes is an opinionated and CNCF conformant Kubernetes operated by Snaps and Charms, which come together to bring simplified operations and an enhanced security posture on any infrastructure.
GNU General Public License v3.0
20
stars
6
forks
source link
Do not set --hostname-override on kubelet and kube-proxy if hostname matches #499
When configuring kubelet and kube-proxy, only specify the --hostname-override flag if the node name does not match.
Changes
Add a snap.Snap.Hostname() string method, which returns os.Hostname() or falls back to "dev"
When configuring kubelet and kube-proxy, if the node name (coming from microcluster config) does not match the hostname (from snap.Hostname(), only then configure--hostname-override`
Summary
When configuring kubelet and kube-proxy, only specify the
--hostname-override
flag if the node name does not match.Changes
snap.Snap.Hostname() string
method, which returnsos.Hostname()
or falls back to"dev"
, only then configure
--hostname-override`