Skip to content
Snippets Groups Projects
Commit 660282e8 authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Make daemonsets upgradeable (#1606)

Canal will be covered by a separate PR
parent 77602dbb
Branches
Tags
No related merge requests found
...@@ -25,18 +25,6 @@ ...@@ -25,18 +25,6 @@
state: absent state: absent
when: inventory_hostname == groups['kube-master'][0] 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 - name: Kubernetes Apps | Start Netchecker Resources
kube: kube:
name: "{{item.item.name}}" name: "{{item.item.name}}"
......
...@@ -40,3 +40,8 @@ spec: ...@@ -40,3 +40,8 @@ spec:
requests: requests:
cpu: {{ netchecker_agent_cpu_requests }} cpu: {{ netchecker_agent_cpu_requests }}
memory: {{ netchecker_agent_memory_requests }} memory: {{ netchecker_agent_memory_requests }}
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
...@@ -44,3 +44,7 @@ spec: ...@@ -44,3 +44,7 @@ spec:
requests: requests:
cpu: {{ netchecker_agent_cpu_requests }} cpu: {{ netchecker_agent_cpu_requests }}
memory: {{ netchecker_agent_memory_requests }} memory: {{ netchecker_agent_memory_requests }}
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
...@@ -58,4 +58,3 @@ spec: ...@@ -58,4 +58,3 @@ spec:
{% if rbac_enabled %} {% if rbac_enabled %}
serviceAccountName: efk serviceAccountName: efk
{% endif %} {% endif %}
...@@ -154,3 +154,8 @@ items: ...@@ -154,3 +154,8 @@ items:
- name: lib-modules - name: lib-modules
hostPath: hostPath:
path: /lib/modules path: /lib/modules
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment