Skip to content

Commit d87deab

Browse files
committed
feat: Set priorityClassName in deploy manifest
1 parent 4be79b0 commit d87deab

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

deploy/k8s/controller-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: cloudstack-csi-controller
77
namespace: kube-system
88
spec:
9-
replicas: 3
9+
replicas: 2
1010
strategy:
1111
type: RollingUpdate
1212
rollingUpdate:
@@ -21,6 +21,7 @@ spec:
2121
app.kubernetes.io/name: cloudstack-csi-controller
2222
app.kubernetes.io/part-of: cloudstack-csi-driver
2323
spec:
24+
priorityClassName: system-cluster-critical
2425
serviceAccountName: cloudstack-csi-controller
2526
nodeSelector:
2627
kubernetes.io/os: linux

deploy/k8s/node-daemonset.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ spec:
1515
app.kubernetes.io/name: cloudstack-csi-node
1616
app.kubernetes.io/part-of: cloudstack-csi-driver
1717
spec:
18+
priorityClassName: system-node-critical
1819
nodeSelector:
1920
kubernetes.io/os: linux
2021
tolerations:
@@ -25,7 +26,7 @@ spec:
2526

2627
containers:
2728
- name: cloudstack-csi-node
28-
image: cloudstack-csi-driver
29+
image: ghcr.io/leaseweb/cloudstack-csi-driver:master
2930
imagePullPolicy: Always
3031
args:
3132
- "-endpoint=$(CSI_ENDPOINT)"
@@ -55,8 +56,6 @@ spec:
5556
mountPropagation: Bidirectional
5657
- name: device-dir
5758
mountPath: /dev
58-
- name: cloud-init-dir
59-
mountPath: /run/cloud-init/
6059
- name: cloudstack-conf
6160
mountPath: /etc/cloudstack-csi-driver
6261
ports:
@@ -132,10 +131,6 @@ spec:
132131
hostPath:
133132
path: /var/lib/kubelet/plugins_registry
134133
type: Directory
135-
- name: cloud-init-dir
136-
hostPath:
137-
path: /run/cloud-init/
138-
type: Directory
139134
- name: cloudstack-conf
140135
secret:
141136
secretName: cloudstack-secret

0 commit comments

Comments
 (0)