[virtual-mcp11-k8s-calico] Apply fixes for routes on k8s computes
There are missed fixes on this model. Let's add it.
Prod-related: PROD-19474
Change-Id: I62c01920a7cf87a9ac4f9783c3bc90baafe437a1
diff --git a/classes/cluster/virtual-mcp11-k8s-calico/kubernetes/compute.yml b/classes/cluster/virtual-mcp11-k8s-calico/kubernetes/compute.yml
index 5bc5eba..e6e0238 100644
--- a/classes/cluster/virtual-mcp11-k8s-calico/kubernetes/compute.yml
+++ b/classes/cluster/virtual-mcp11-k8s-calico/kubernetes/compute.yml
@@ -6,6 +6,8 @@
- system.salt.minion.cert.etcd_client
- cluster.virtual-mcp11-k8s-calico
parameters:
+ _param:
+ cluster_local_address: ${_param:deploy_address}
docker:
host:
pkgs:
@@ -45,9 +47,9 @@
network:
resolv:
dns:
- - 10.254.0.10
+ - 172.18.208.44
- 172.18.176.4
- - 172.18.176.7
+ - 10.254.0.10
interface:
ens3:
enabled: true
@@ -57,14 +59,13 @@
address: ${_param:deploy_address}
netmask: 255.255.255.0
gateway: 192.168.10.1
- route:
- kubernetes_services:
- address: 10.254.0.0
- netmask: 255.255.0.0
- gateway: ${_param:deploy_address}
+ post_up_cmds:
+ - ip r rep 10.254.0.0/16 via ${_param:deploy_address}
ens4:
enabled: true
type: eth
proto: static
address: ${_param:single_address}
netmask: '255.255.255.0'
+ ipflush_onchange: true
+ restart_on_ipflush: true