Skip to content

Commit

Permalink
Merge pull request #81 from huffmanca/schedule-on-master
Browse files Browse the repository at this point in the history
Bug 1873175: Allow CSI Drivers to run on master nodes
  • Loading branch information
openshift-merge-robot committed Aug 29, 2020
2 parents 74905d1 + 479ad51 commit b678a3a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
5 changes: 5 additions & 0 deletions assets/csidriveroperators/aws-ebs/07_deployment.yaml
Expand Up @@ -46,6 +46,11 @@ spec:
cpu: 10m
priorityClassName: system-cluster-critical
serviceAccountName: aws-ebs-csi-driver-operator
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: node-role.kubernetes.io/master
operator: Exists
effect: "NoSchedule"
5 changes: 5 additions & 0 deletions assets/csidriveroperators/manila/07_deployment.yaml
Expand Up @@ -54,9 +54,14 @@ spec:
cpu: 10m
priorityClassName: system-cluster-critical
serviceAccountName: manila-csi-driver-operator
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: node-role.kubernetes.io/master
operator: Exists
effect: "NoSchedule"
volumes:
- name: cacert
# Extract ca-bundle.pem to /usr/share/pki/ca-trust-source if present.
Expand Down
12 changes: 8 additions & 4 deletions assets/csidriveroperators/ovirt/07_deployment.yaml
Expand Up @@ -16,6 +16,14 @@ spec:
spec:
serviceAccountName: ovirt-csi-driver-operator
priorityClassName: system-cluster-critical
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: node-role.kubernetes.io/master
operator: Exists
effect: "NoSchedule"
initContainers:
- name: prepare-ovirt-config
env:
Expand Down Expand Up @@ -68,7 +76,6 @@ spec:
volumeMounts:
- name: config
mountPath: /tmp/config

containers:
- name: ovirt-csi-driver-operator
image: ${OPERATOR_IMAGE}
Expand All @@ -77,9 +84,6 @@ spec:
requests:
memory: 50Mi
cpu: 10m
tolerations:
- key: CriticalAddonsOnly
operator: Exists
args:
- start
- "--node=$(KUBE_NODE_NAME)"
Expand Down
22 changes: 18 additions & 4 deletions pkg/generated/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b678a3a

Please sign in to comment.