diff --git a/deploy/lvm-operator.yaml b/deploy/lvm-operator.yaml index 57b023b7..a3d7d001 100644 --- a/deploy/lvm-operator.yaml +++ b/deploy/lvm-operator.yaml @@ -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 @@ -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 @@ -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 @@ -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: diff --git a/deploy/yamls/lvm-driver.yaml b/deploy/yamls/lvm-driver.yaml index d9f332e6..24150bb9 100644 --- a/deploy/yamls/lvm-driver.yaml +++ b/deploy/yamls/lvm-driver.yaml @@ -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: @@ -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 @@ -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 @@ -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: