diff --git a/bootstrap/init.sh b/bootstrap/init.sh index 658148e..e70d189 100755 --- a/bootstrap/init.sh +++ b/bootstrap/init.sh @@ -42,8 +42,13 @@ echo "export KUBECONFIG=\"$( pwd )/kubespray/inventory/sample/artifacts/admin.co echo "######################################################################################" -echo "## Preparing real prod environment" +echo "## * syncing config in kubespray dir" rsync -a ./inventory/ ./kubespray/inventory/ +echo "## * changing into kubespray dir" +cd kubespray +echo "## * execute the following command to force new settings" +echo "ansible-playbook -i inventory/prod/inventory.ini -e upgrade_cluster_setup=true cluster.yml" + # cp -r kubespray/inventory/sample kubespray/inventory/prod # rm kubespray/inventory/prod/inventory.ini # cp ./prod.ini kubespray/inventory/prod/inventory.ini diff --git a/bootstrap/inventory/prod/group_vars/all/all.yml b/bootstrap/inventory/prod/group_vars/all/all.yml index 4fe7c46..dbde1c8 100644 --- a/bootstrap/inventory/prod/group_vars/all/all.yml +++ b/bootstrap/inventory/prod/group_vars/all/all.yml @@ -37,9 +37,9 @@ loadbalancer_apiserver_healthcheck_port: 8081 ### OTHER OPTIONAL VARIABLES ## Upstream dns servers -# upstream_dns_servers: -# - 8.8.8.8 -# - 8.8.4.4 +upstream_dns_servers: +- 1.1.1.1 +- 1.0.0.1 ## There are some changes specific to the cloud providers ## for instance we need to encapsulate packets with some network plugins diff --git a/bootstrap/inventory/prod/group_vars/k8s-cluster/k8s-cluster.yml b/bootstrap/inventory/prod/group_vars/k8s-cluster/k8s-cluster.yml index 9cf4705..15fb70b 100644 --- a/bootstrap/inventory/prod/group_vars/k8s-cluster/k8s-cluster.yml +++ b/bootstrap/inventory/prod/group_vars/k8s-cluster/k8s-cluster.yml @@ -145,7 +145,7 @@ dns_mode: coredns # Set manual server if using a custom cluster DNS server # manual_dns_server: 10.x.x.x # Enable nodelocal dns cache -enable_nodelocaldns: true +enable_nodelocaldns: false nodelocaldns_ip: 169.254.25.10 nodelocaldns_health_port: 9254 # nodelocaldns_external_zones: diff --git a/bootstrap/inventory/prod/inventory.ini b/bootstrap/inventory/prod/inventory.ini index 6a1f6cf..b556b7e 100644 --- a/bootstrap/inventory/prod/inventory.ini +++ b/bootstrap/inventory/prod/inventory.ini @@ -2,7 +2,7 @@ # ## different ip than the default iface # ## We should set etcd_member_name for etcd cluster. The node that is not a etcd member do not need to set the value, or can set the empty string value. [all] -haumdaucher ansible_host=136.243.23.215 etcd_member_name=etcd1 ansible_become=yes ansible_become_method=sudo ansible_python_interpreter=/usr/bin/python3 metrics_server_enabled=false +haumdaucher ansible_host=136.243.23.215 etcd_member_name=etcd1 ansible_become=yes ansible_become_method=sudo ansible_python_interpreter=/usr/bin/python3 metrics_server_enabled=false dns_min_replicas=1 # container_manager=containerd resolvconf_mode=docker_dns #ns3088070.ip-37-59-40.eu ansible_host=37.59.40.95 ansible_become=yes ansible_become_method=sudo ansible_python_interpreter=/usr/bin/python3