Set kubelet address
Fixes issue with OpenStack cloud provider where kubelet tries to
register with different host IP addresses.
Change-Id: I353b18b16e8bde92fa6281a77ec2e8139925c1a0
diff --git a/metadata/service/master/cluster.yml b/metadata/service/master/cluster.yml
index f267e5e..aa189f1 100644
--- a/metadata/service/master/cluster.yml
+++ b/metadata/service/master/cluster.yml
@@ -17,6 +17,7 @@
username: ${_param:kubernetes_admin_user}
password: ${_param:kubernetes_admin_password}
kubelet:
+ address: ${_param:cluster_local_address}
allow_privileged: True
apiserver:
address: ${_param:cluster_local_address}
diff --git a/metadata/service/master/single.yml b/metadata/service/master/single.yml
index 61464f7..441ac6b 100644
--- a/metadata/service/master/single.yml
+++ b/metadata/service/master/single.yml
@@ -17,6 +17,7 @@
username: ${_param:kubernetes_admin_user}
password: ${_param:kubernetes_admin_password}
kubelet:
+ address: ${_param:cluster_local_address}
allow_privileged: True
apiserver:
address: ${_param:single_address}
diff --git a/metadata/service/pool/cluster.yml b/metadata/service/pool/cluster.yml
index b529623..826a78b 100644
--- a/metadata/service/pool/cluster.yml
+++ b/metadata/service/pool/cluster.yml
@@ -27,6 +27,7 @@
cluster_dns: 10.254.0.10
cluster_domain: ${_param:kubernetes_cluster_domain}
kubelet:
+ address: ${_param:cluster_local_address}
config: /etc/kubernetes/manifests
allow_privileged: True
frequency: 5s
diff --git a/metadata/service/pool/single.yml b/metadata/service/pool/single.yml
index 057596b..eefb9ce 100644
--- a/metadata/service/pool/single.yml
+++ b/metadata/service/pool/single.yml
@@ -24,6 +24,7 @@
allow_privileged: True
cluster_domain: ${_param:kubernetes_cluster_domain}
kubelet:
+ address: ${_param:cluster_local_address}
config: /etc/kubernetes/manifests
allow_privileged: True
frequency: 5s