From 57e1831f78bde295e3ad413116d8fcc90300a5e2 Mon Sep 17 00:00:00 2001 From: Antoine Legrand Date: Fri, 20 Nov 2015 10:38:39 +0100 Subject: [PATCH] Update calico to 0.11.0 --- roles/download/defaults/main.yml | 8 ++++++++ roles/download/vars/main.yml | 8 -------- roles/kubernetes/common/defaults/main.yml | 1 + roles/kubernetes/master/templates/proxy.j2 | 2 +- roles/kubernetes/node/templates/proxy.j2 | 2 +- .../templates/calico/calico-node.service.j2 | 2 +- 6 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 roles/download/vars/main.yml diff --git a/roles/download/defaults/main.yml b/roles/download/defaults/main.yml index 8a90f9ce6..e6eeea09a 100644 --- a/roles/download/defaults/main.yml +++ b/roles/download/defaults/main.yml @@ -3,3 +3,11 @@ etcd_download_url: https://github.com/coreos/etcd/releases/download flannel_download_url: https://github.com/coreos/flannel/releases/download kube_download_url: https://github.com/GoogleCloudPlatform/kubernetes/releases/download calico_download_url: https://github.com/Metaswitch/calico-docker/releases/download + +etcd_version: v2.2.1 +flannel_version: 0.5.3 + +kube_version: v1.1.1 +kube_sha1: 0eac7460fcf7d175592466603f6b9c2a076fb7b2 + +calico_version: v0.11.0 diff --git a/roles/download/vars/main.yml b/roles/download/vars/main.yml deleted file mode 100644 index 85e1e6240..000000000 --- a/roles/download/vars/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -etcd_version: v2.2.1 -flannel_version: 0.5.3 - -kube_version: v1.1.1 -kube_sha1: 0eac7460fcf7d175592466603f6b9c2a076fb7b2 - -calico_version: v0.10.0 diff --git a/roles/kubernetes/common/defaults/main.yml b/roles/kubernetes/common/defaults/main.yml index f25f2b802..09df9be6b 100644 --- a/roles/kubernetes/common/defaults/main.yml +++ b/roles/kubernetes/common/defaults/main.yml @@ -30,6 +30,7 @@ kube_cert_group: kube-cert dns_domain: "{{ cluster_name }}" +kube_proxy_mode: iptables # IP address of the DNS server. # Kubernetes will create a pod with several containers, serving as the DNS # server and expose it under this IP address. The IP address must be from diff --git a/roles/kubernetes/master/templates/proxy.j2 b/roles/kubernetes/master/templates/proxy.j2 index fa70f0682..1dc680e36 100644 --- a/roles/kubernetes/master/templates/proxy.j2 +++ b/roles/kubernetes/master/templates/proxy.j2 @@ -4,4 +4,4 @@ # default config should be adequate # Add your own! -KUBE_PROXY_ARGS="--kubeconfig={{ kube_config_dir }}/proxy.kubeconfig --proxy-mode=iptables" +KUBE_PROXY_ARGS="--kubeconfig={{ kube_config_dir }}/proxy.kubeconfig --proxy-mode={{kube_proxy_mode}}" diff --git a/roles/kubernetes/node/templates/proxy.j2 b/roles/kubernetes/node/templates/proxy.j2 index 0b336915d..f529d7d5e 100644 --- a/roles/kubernetes/node/templates/proxy.j2 +++ b/roles/kubernetes/node/templates/proxy.j2 @@ -3,4 +3,4 @@ # default config should be adequate [Service] -Environment="KUBE_PROXY_ARGS=--kubeconfig={{ kube_config_dir }}/proxy.kubeconfig --proxy-mode=iptables" +Environment="KUBE_PROXY_ARGS=--kubeconfig={{ kube_config_dir }}/proxy.kubeconfig --proxy-mode={{kube_proxy_mode}}" diff --git a/roles/network_plugin/templates/calico/calico-node.service.j2 b/roles/network_plugin/templates/calico/calico-node.service.j2 index b2c41a04e..0d20205f5 100644 --- a/roles/network_plugin/templates/calico/calico-node.service.j2 +++ b/roles/network_plugin/templates/calico/calico-node.service.j2 @@ -11,7 +11,7 @@ ExecStartPre={{ bin_dir }}/calicoctl checksystem --fix {% if peer_with_router|default(false) %} ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4} --as={{ local_as }} --kubernetes {% else %} -ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4} --kubernetes --kube-plugin-version=v0.5.0 +ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4} --kubernetes --kube-plugin-version=v0.6.0 {% endif %} {% else %} ExecStart={{ bin_dir }}/calicoctl node --ip=${DEFAULT_IPV4}