Skip to content

Commit

Permalink
feat(upgrade): support parallel/faster upgrades for node daemonset
Browse files Browse the repository at this point in the history
For ZFSPV, all the node daemonset pods can go into the terminating state at
the same time since it does not need any minimum availability of those pods.

Changing maxUnavailable to 100% so that K8s can upgrade all the daemonset
pods parallelly.

Signed-off-by: Pawan <pawan@mayadata.io>
  • Loading branch information
pawanpraka1 committed Oct 20, 2020
1 parent 00d3fc1 commit 22224b9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
16 changes: 14 additions & 2 deletions deploy/yamls/zfs-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,9 @@ apiVersion: apps/v1
metadata:
name: openebs-zfs-controller
namespace: kube-system
labels:
openebs.io/component-name: openebs-zfs-controller
openebs.io/version: ci
spec:
selector:
matchLabels:
Expand All @@ -513,6 +516,8 @@ spec:
labels:
app: openebs-zfs-controller
role: openebs-zfs
openebs.io/component-name: openebs-zfs-controller
openebs.io/version: ci
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -724,15 +729,24 @@ apiVersion: apps/v1
metadata:
name: openebs-zfs-node
namespace: kube-system
labels:
openebs.io/component-name: openebs-zfs-node
openebs.io/version: ci
spec:
selector:
matchLabels:
app: openebs-zfs-node
updateStrategy:
rollingUpdate:
maxUnavailable: 100%
type: RollingUpdate
template:
metadata:
labels:
app: openebs-zfs-node
role: openebs-zfs
openebs.io/component-name: openebs-zfs-node
openebs.io/version: ci
spec:
priorityClassName: system-node-critical
serviceAccount: openebs-zfs-node-sa
Expand Down Expand Up @@ -768,8 +782,6 @@ spec:
- name: openebs-zfs-plugin
securityContext:
privileged: true
capabilities:
add: ["CAP_MKNOD", "CAP_SYS_ADMIN", "SYS_ADMIN"]
allowPrivilegeEscalation: true
image: quay.io/openebs/zfs-driver:ci
imagePullPolicy: IfNotPresent
Expand Down
16 changes: 14 additions & 2 deletions deploy/zfs-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,9 @@ apiVersion: apps/v1
metadata:
name: openebs-zfs-controller
namespace: kube-system
labels:
openebs.io/component-name: openebs-zfs-controller
openebs.io/version: ci
spec:
selector:
matchLabels:
Expand All @@ -1552,6 +1555,8 @@ spec:
labels:
app: openebs-zfs-controller
role: openebs-zfs
openebs.io/component-name: openebs-zfs-controller
openebs.io/version: ci
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -1763,15 +1768,24 @@ apiVersion: apps/v1
metadata:
name: openebs-zfs-node
namespace: kube-system
labels:
openebs.io/component-name: openebs-zfs-node
openebs.io/version: ci
spec:
selector:
matchLabels:
app: openebs-zfs-node
updateStrategy:
rollingUpdate:
maxUnavailable: 100%
type: RollingUpdate
template:
metadata:
labels:
app: openebs-zfs-node
role: openebs-zfs
openebs.io/component-name: openebs-zfs-node
openebs.io/version: ci
spec:
priorityClassName: system-node-critical
serviceAccount: openebs-zfs-node-sa
Expand Down Expand Up @@ -1807,8 +1821,6 @@ spec:
- name: openebs-zfs-plugin
securityContext:
privileged: true
capabilities:
add: ["CAP_MKNOD", "CAP_SYS_ADMIN", "SYS_ADMIN"]
allowPrivilegeEscalation: true
image: quay.io/openebs/zfs-driver:ci
imagePullPolicy: IfNotPresent
Expand Down

0 comments on commit 22224b9

Please sign in to comment.