Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(upgrade): support parallel/faster upgrades for node daemonset #230

Merged
merged 1 commit into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelogs/unreleased/230-pawanpraka1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
support parallel/faster upgrades for node daemonset
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