Skip to content

Commit

Permalink
refact(operator): update lvm operator with custom priorityclass (#126)
Browse files Browse the repository at this point in the history
Signed-off-by: prateekpandey14 <[email protected]>
  • Loading branch information
prateekpandey14 authored Aug 9, 2021
1 parent 6ee7c9d commit 929ae44
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 4 deletions.
26 changes: 24 additions & 2 deletions deploy/lvm-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,17 @@ roleRef:
name: openebs-lvm-provisioner-role
apiGroup: rbac.authorization.k8s.io

---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-lvm-localpv-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 LVM localPV CSI driver controller deployment only."
---
kind: StatefulSet
apiVersion: apps/v1
Expand Down Expand Up @@ -1181,7 +1192,7 @@ spec:
values:
- openebs-lvm-controller
topologyKey: "kubernetes.io/hostname"
priorityClassName: system-cluster-critical
priorityClassName: openebs-lvm-localpv-csi-controller-critical
serviceAccount: openebs-lvm-controller-sa
containers:
- name: csi-resizer
Expand Down Expand Up @@ -1358,6 +1369,17 @@ roleRef:

---

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-lvm-localpv-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 LVM localPV CSI driver node deployment only."
---

kind: DaemonSet
apiVersion: apps/v1
Expand All @@ -1383,7 +1405,7 @@ spec:
openebs.io/component-name: openebs-lvm-node
openebs.io/version: ci
spec:
priorityClassName: system-node-critical
priorityClassName: openebs-lvm-localpv-csi-node-critical
serviceAccount: openebs-lvm-node-sa
hostNetwork: true
containers:
Expand Down
28 changes: 26 additions & 2 deletions deploy/yamls/lvm-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,19 @@ roleRef:
apiGroup: rbac.authorization.k8s.io

---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-lvm-localpv-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 LVM localPV CSI driver controller deployment only."

---

kind: StatefulSet
apiVersion: apps/v1
metadata:
Expand Down Expand Up @@ -745,7 +758,7 @@ spec:
values:
- openebs-lvm-controller
topologyKey: "kubernetes.io/hostname"
priorityClassName: system-cluster-critical
priorityClassName: openebs-lvm-localpv-csi-controller-critical
serviceAccount: openebs-lvm-controller-sa
containers:
- name: csi-resizer
Expand Down Expand Up @@ -922,6 +935,17 @@ roleRef:

---

apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: openebs-lvm-localpv-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 LVM localPV CSI driver node deployment only."
---

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

0 comments on commit 929ae44

Please sign in to comment.