Skip to content

Commit

Permalink
refact(operator): update zfs operator with custom priorityclass (#367)
Browse files Browse the repository at this point in the history
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
  • Loading branch information
prateekpandey14 authored Aug 9, 2021
1 parent 5460cd3 commit 95d5d3a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 4 deletions.
31 changes: 29 additions & 2 deletions deploy/yamls/zfs-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,20 @@ roleRef:
apiGroup: rbac.authorization.k8s.io

---

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-zfs-csi-controller-critical
# A PriorityClass object can have any 32-bit integer value smaller than or equal
# to 1 billion. Larger numbers are reserved for critical system Pods that should
# not normally be preempted or evicted. The higher the value, the higher the priority.
value: 900000000
globalDefault: false
description: "This priority class should be used for the OpenEBS ZFS localPV CSI driver controller deployment only."

---

kind: StatefulSet
apiVersion: apps/v1
metadata:
Expand Down Expand Up @@ -744,7 +758,7 @@ spec:
values:
- openebs-zfs-controller
topologyKey: "kubernetes.io/hostname"
priorityClassName: system-cluster-critical
priorityClassName: openebs-zfs-csi-controller-critical
serviceAccount: openebs-zfs-controller-sa
containers:
- name: csi-resizer
Expand Down Expand Up @@ -939,6 +953,19 @@ data:
---

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-zfs-csi-node-critical
# A PriorityClass object can have any 32-bit integer value smaller than or equal
# to 1 billion. Larger numbers are reserved for critical system Pods that should
# not normally be preempted or evicted. The higher the value, the higher the priority.
value: 900001000
globalDefault: false
description: "This priority class should be used for the OpenEBS ZFS localPV CSI driver node deployment only."

---

kind: DaemonSet
apiVersion: apps/v1
metadata:
Expand All @@ -963,7 +990,7 @@ spec:
openebs.io/component-name: openebs-zfs-node
openebs.io/version: ci
spec:
priorityClassName: system-node-critical
priorityClassName: openebs-zfs-csi-node-critical
serviceAccount: openebs-zfs-node-sa
hostNetwork: true
containers:
Expand Down
30 changes: 28 additions & 2 deletions deploy/zfs-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2004,6 +2004,19 @@ roleRef:
name: openebs-zfs-provisioner-role
apiGroup: rbac.authorization.k8s.io

---

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-zfs-csi-controller-critical
# A PriorityClass object can have any 32-bit integer value smaller than or equal
# to 1 billion. Larger numbers are reserved for critical system Pods that should
# not normally be preempted or evicted. The higher the value, the higher the priority.
value: 900000000
globalDefault: false
description: "This priority class should be used for the OpenEBS ZFS localPV CSI driver controller deployment only."

---
kind: StatefulSet
apiVersion: apps/v1
Expand Down Expand Up @@ -2038,7 +2051,7 @@ spec:
values:
- openebs-zfs-controller
topologyKey: "kubernetes.io/hostname"
priorityClassName: system-cluster-critical
priorityClassName: openebs-zfs-csi-controller-critical
serviceAccount: openebs-zfs-controller-sa
containers:
- name: csi-resizer
Expand Down Expand Up @@ -2233,6 +2246,19 @@ data:
---

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-zfs-csi-node-critical
# A PriorityClass object can have any 32-bit integer value smaller than or equal
# to 1 billion. Larger numbers are reserved for critical system Pods that should
# not normally be preempted or evicted. The higher the value, the higher the priority.
value: 900001000
globalDefault: false
description: "This priority class should be used for the OpenEBS ZFS localPV CSI driver node deployment only."

---

kind: DaemonSet
apiVersion: apps/v1
metadata:
Expand All @@ -2257,7 +2283,7 @@ spec:
openebs.io/component-name: openebs-zfs-node
openebs.io/version: ci
spec:
priorityClassName: system-node-critical
priorityClassName: openebs-zfs-csi-node-critical
serviceAccount: openebs-zfs-node-sa
hostNetwork: true
containers:
Expand Down

0 comments on commit 95d5d3a

Please sign in to comment.