Merge "Fix nodes for virtlet addon in k8s_ha_calico."
diff --git a/classes/cluster/k8s-ha-calico/kubernetes/compute.yml b/classes/cluster/k8s-ha-calico/kubernetes/compute.yml
index be8ae98..2681e7f 100644
--- a/classes/cluster/k8s-ha-calico/kubernetes/compute.yml
+++ b/classes/cluster/k8s-ha-calico/kubernetes/compute.yml
@@ -33,7 +33,7 @@
namespace: ${_param:kubernetes_addon_namespace}
image: ${_param:kubernetes_virtlet_image}
hosts:
- - ${linux:system:name}
+ - ${_param:kubernetes_compute01_hostname}
hyperkube:
image: ${_param:kubernetes_hyperkube_image}
linux:
diff --git a/classes/cluster/k8s-ha-calico/kubernetes/init.yml b/classes/cluster/k8s-ha-calico/kubernetes/init.yml
index b2091b4..d8e5c25 100644
--- a/classes/cluster/k8s-ha-calico/kubernetes/init.yml
+++ b/classes/cluster/k8s-ha-calico/kubernetes/init.yml
@@ -44,6 +44,7 @@
kubernetes_control_node01_hostname: ctl01
kubernetes_control_node02_hostname: ctl02
kubernetes_control_node03_hostname: ctl03
+ kubernetes_compute01_hostname: cmp0
kubernetes_control_node01_address: 172.16.10.101
kubernetes_control_node02_address: 172.16.10.102
kubernetes_control_node03_address: 172.16.10.103