Make daemonsets upgradeable (#1606)

Canal will be covered by a separate PR
pull/1611/head
Matthew Mosesohn 2017-09-04 11:30:01 +03:00 committed by GitHub
parent 77602dbb93
commit 660282e82f
5 changed files with 14 additions and 13 deletions

View File

@ -25,18 +25,6 @@
state: absent
when: inventory_hostname == groups['kube-master'][0]
# FIXME: remove if kubernetes/features#124 is implemented
- name: Kubernetes Apps | Purge old Netchecker daemonsets
kube:
name: "{{item.item.name}}"
namespace: "{{netcheck_namespace}}"
kubectl: "{{bin_dir}}/kubectl"
resource: "{{item.item.type}}"
filename: "{{kube_config_dir}}/{{item.item.file}}"
state: absent
with_items: "{{ manifests.results }}"
when: inventory_hostname == groups['kube-master'][0] and item.item.type == "ds" and item.changed
- name: Kubernetes Apps | Start Netchecker Resources
kube:
name: "{{item.item.name}}"

View File

@ -40,3 +40,8 @@ spec:
requests:
cpu: {{ netchecker_agent_cpu_requests }}
memory: {{ netchecker_agent_memory_requests }}
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate

View File

@ -44,3 +44,7 @@ spec:
requests:
cpu: {{ netchecker_agent_cpu_requests }}
memory: {{ netchecker_agent_memory_requests }}
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate

View File

@ -58,4 +58,3 @@ spec:
{% if rbac_enabled %}
serviceAccountName: efk
{% endif %}

View File

@ -154,3 +154,8 @@ items:
- name: lib-modules
hostPath:
path: /lib/modules
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate