refact(operator): update zfs operator with custom priorityclass (#367)

Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
This commit is contained in:
Prateek Pandey 2021-08-09 19:44:22 +05:30 committed by GitHub
parent 5460cd3650
commit 95d5d3a8d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 4 deletions

View file

@ -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
@ -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
@ -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:
@ -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: