fix deploy address and missing routes
Change-Id: I92f91aa4903a5d1662653893b500a78d1b74b42d
diff --git a/classes/cluster/virtual-mcp11-k8s-calico/infra/init.yml b/classes/cluster/virtual-mcp11-k8s-calico/infra/init.yml
index cc710a8..f030f0d 100644
--- a/classes/cluster/virtual-mcp11-k8s-calico/infra/init.yml
+++ b/classes/cluster/virtual-mcp11-k8s-calico/infra/init.yml
@@ -10,7 +10,7 @@
_param:
# infra service addresses
infra_config_hostname: cfg01
- infra_config_address: 192.168.10.100
+ infra_config_address: 172.16.10.100
infra_config_deploy_address: 192.168.10.100
cluster_domain: virtual-mcp11-k8s-calico.local
@@ -36,6 +36,24 @@
proto: static
address: ${_param:single_address}
netmask: 255.255.255.0
+ route:
+ kubernetes_services:
+ address: 10.254.0.0
+ netmask: 255.255.0.0
+ gateway: ${_param:single_address}
system:
name: ${_param:infra_config_hostname}
domain: ${_param:cluster_domain}
+ rc:
+ local: |
+ #!/bin/sh -e
+ #
+ # rc.local
+ #
+ ######### This file is managed by Salt! ##########
+ # This script is executed at the end of each multiuser runlevel.
+ # Make sure that the script will "exit 0" on success or any other
+ # value on error.
+ #
+ ip r a 10.254.0.0/16 dev ens4
+ exit 0