mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 07:35:12 +01:00
refact(operator): update zfs operator with custom priorityclass (#367)
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
This commit is contained in:
parent
5460cd3650
commit
95d5d3a8d3
2 changed files with 57 additions and 4 deletions
|
|
@ -711,6 +711,20 @@ roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
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
|
kind: StatefulSet
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -744,7 +758,7 @@ spec:
|
||||||
values:
|
values:
|
||||||
- openebs-zfs-controller
|
- openebs-zfs-controller
|
||||||
topologyKey: "kubernetes.io/hostname"
|
topologyKey: "kubernetes.io/hostname"
|
||||||
priorityClassName: system-cluster-critical
|
priorityClassName: openebs-zfs-csi-controller-critical
|
||||||
serviceAccount: openebs-zfs-controller-sa
|
serviceAccount: openebs-zfs-controller-sa
|
||||||
containers:
|
containers:
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
|
|
@ -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
|
kind: DaemonSet
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -963,7 +990,7 @@ spec:
|
||||||
openebs.io/component-name: openebs-zfs-node
|
openebs.io/component-name: openebs-zfs-node
|
||||||
openebs.io/version: ci
|
openebs.io/version: ci
|
||||||
spec:
|
spec:
|
||||||
priorityClassName: system-node-critical
|
priorityClassName: openebs-zfs-csi-node-critical
|
||||||
serviceAccount: openebs-zfs-node-sa
|
serviceAccount: openebs-zfs-node-sa
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
|
|
|
||||||
|
|
@ -2004,6 +2004,19 @@ roleRef:
|
||||||
name: openebs-zfs-provisioner-role
|
name: openebs-zfs-provisioner-role
|
||||||
apiGroup: rbac.authorization.k8s.io
|
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
|
kind: StatefulSet
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
|
@ -2038,7 +2051,7 @@ spec:
|
||||||
values:
|
values:
|
||||||
- openebs-zfs-controller
|
- openebs-zfs-controller
|
||||||
topologyKey: "kubernetes.io/hostname"
|
topologyKey: "kubernetes.io/hostname"
|
||||||
priorityClassName: system-cluster-critical
|
priorityClassName: openebs-zfs-csi-controller-critical
|
||||||
serviceAccount: openebs-zfs-controller-sa
|
serviceAccount: openebs-zfs-controller-sa
|
||||||
containers:
|
containers:
|
||||||
- name: csi-resizer
|
- 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
|
kind: DaemonSet
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -2257,7 +2283,7 @@ spec:
|
||||||
openebs.io/component-name: openebs-zfs-node
|
openebs.io/component-name: openebs-zfs-node
|
||||||
openebs.io/version: ci
|
openebs.io/version: ci
|
||||||
spec:
|
spec:
|
||||||
priorityClassName: system-node-critical
|
priorityClassName: openebs-zfs-csi-node-critical
|
||||||
serviceAccount: openebs-zfs-node-sa
|
serviceAccount: openebs-zfs-node-sa
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue