Merge "Upgrade Kubernetes version deployed by RKE to v1.19.6"
diff --git a/ansible/group_vars/infrastructure.yml b/ansible/group_vars/infrastructure.yml
index a590c46..b351697 100755
--- a/ansible/group_vars/infrastructure.yml
+++ b/ansible/group_vars/infrastructure.yml
@@ -21,6 +21,7 @@
 helm_bin_dir: /usr/local/bin
 helm_version: v2.16.6
 helm3_push_version: 0.9.0
+rke_kubernetes_version: v1.19.6-rancher1-1
 vnc_server_image: consol/ubuntu-icewm-vnc:1.4.0
 nexus3_image: sonatype/nexus3:3.15.2
 dns_server_image: andyshinn/dnsmasq:2.76
diff --git a/ansible/roles/rke/defaults/main.yml b/ansible/roles/rke/defaults/main.yml
index c9d82d9..c0bd5ef 100644
--- a/ansible/roles/rke/defaults/main.yml
+++ b/ansible/roles/rke/defaults/main.yml
@@ -50,35 +50,3 @@
   enabled_unsafe_volatile_storage: false
   # Size of the volatile storage - tmpfs (this will eat your RAM)
   tmpfs_size: 5G
-
-rke:
-  # rke (rancher) images
-  etcd: "rancher/coreos-etcd:v3.3.10-rancher1"
-  alpine: "rancher/rke-tools:v0.1.52"
-  nginx_proxy: "rancher/rke-tools:v0.1.52"
-  cert_downloader: "rancher/rke-tools:v0.1.52"
-  kubernetes_services_sidecar: "rancher/rke-tools:v0.1.52"
-  kubedns: "rancher/k8s-dns-kube-dns:1.15.0"
-  dnsmasq: "rancher/k8s-dns-dnsmasq-nanny:1.15.0"
-  kubedns_sidecar: "rancher/k8s-dns-sidecar:1.15.0"
-  kubedns_autoscaler: "rancher/cluster-proportional-autoscaler:1.7.1"
-  coredns: "rancher/coredns-coredns:1.6.2"
-  coredns_autoscaler: "rancher/cluster-proportional-autoscaler:1.7.1"
-  kubernetes: "rancher/hyperkube:v1.15.9-rancher1"
-  flannel: "rancher/coreos-flannel:v0.11.0-rancher1"
-  flannel_cni: "rancher/flannel-cni:v0.3.0-rancher5"
-  calico_node: "rancher/calico-node:v3.7.4"
-  calico_cni: "rancher/calico-cni:v3.7.4"
-  calico_controllers: "rancher/calico-kube-controllers:v3.7.4"
-  calico_ctl: "rancher/calico-ctl:v2.0.0"
-  calico_flexvol: "rancher/calico-pod2daemon-flexvol:v3.10.2"
-  canal_node: "rancher/calico-node:v3.7.4"
-  canal_cni: "rancher/calico-cni:v3.7.4"
-  canal_flannel: "rancher/coreos-flannel:v0.11.0"
-  canal_flexvol: "rancher/calico-pod2daemon-flexvol:v3.10.2"
-  weave_node: "weaveworks/weave-kube:2.5.2"
-  weave_cni: "weaveworks/weave-npc:2.5.2"
-  pod_infra_container: "rancher/pause:3.1"
-  ingress: "rancher/nginx-ingress-controller:nginx-0.25.1-rancher1"
-  ingress_backend: "rancher/nginx-ingress-controller-defaultbackend:1.5-rancher1"
-  metrics_server: "rancher/metrics-server:v0.3.3"
diff --git a/ansible/roles/rke/templates/cluster.yml.j2 b/ansible/roles/rke/templates/cluster.yml.j2
index 53e9a09..5544728 100644
--- a/ansible/roles/rke/templates/cluster.yml.j2
+++ b/ansible/roles/rke/templates/cluster.yml.j2
@@ -93,34 +93,7 @@
 addons_include:
 - "{{ cluster_config_dir }}/kubernetes-dashboard.yml"
 - "{{ cluster_config_dir }}/k8s-dashboard-user.yml"
-system_images:
-  etcd: "{{ rke.etcd }}"
-  alpine: "{{ rke.alpine }}"
-  nginx_proxy: "{{ rke.nginx_proxy }}"
-  cert_downloader: "{{ rke.cert_downloader }}"
-  kubernetes_services_sidecar: "{{ rke.kubernetes_services_sidecar }}"
-  kubedns: "{{ rke.kubedns }}"
-  dnsmasq: "{{ rke.dnsmasq }}"
-  kubedns_sidecar: "{{ rke.kubedns_sidecar }}"
-  kubedns_autoscaler: "{{ rke.kubedns_autoscaler }}"
-  coredns: "{{ rke.coredns }}"
-  coredns_autoscaler: "{{ rke.coredns_autoscaler }}"
-  kubernetes: "{{ rke.kubernetes }}"
-  flannel: "{{ rke.flannel }}"
-  flannel_cni: "{{ rke.flannel_cni }}"
-  calico_node: "{{ rke.calico_node }}"
-  calico_cni: "{{ rke.calico_cni }}"
-  calico_controllers: ""
-  calico_ctl: "{{ rke.calico_ctl }}"
-  canal_node: "{{ rke.canal_node }}"
-  canal_cni: "{{ rke.canal_cni }}"
-  canal_flannel: "{{ rke.canal_flannel }}"
-  weave_node: "{{ rke.weave_node }}"
-  weave_cni: "{{ rke.weave_cni }}"
-  pod_infra_container: "{{ rke.pod_infra_container }}"
-  ingress: "{{ rke.ingress }}"
-  ingress_backend: "{{ rke.ingress_backend }}"
-  metrics_server: "{{ rke.metrics_server }}"
+system_images: {}
 ssh_key_path: "{{ cluster_config_dir }}/cluster_key"
 ssh_cert_path: ""
 ssh_agent_auth: false
@@ -128,7 +101,7 @@
   mode: none
   options: {}
 ignore_docker_version: false
-kubernetes_version: ""
+kubernetes_version: {{ rke_kubernetes_version }}
 private_registries: []
 ingress:
   provider: ""