Skip to content

Commit

Permalink
Merge pull request #52 from rollandf/critical-pod
Browse files Browse the repository at this point in the history
Set priorityClassName instead of annotation
  • Loading branch information
adrianchiris authored Feb 15, 2022
2 parents 55aba0a + 108cf60 commit 47a7a5d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions images/k8s-rdma-shared-dev-plugin-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,11 @@ spec:
name: rdma-shared-dp-ds
template:
metadata:
# Mark this pod as a critical add-on; when enabled, the critical add-on scheduler
# reserves resources for critical add-on pods so that they can be rescheduled after
# a failure. This annotation works in tandem with the toleration below.
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: rdma-shared-dp-ds
spec:
hostNetwork: true
tolerations:
# Allow this pod to be rescheduled while the node is in "critical add-ons only" mode.
# This, along with the annotation above marks this pod as a critical add-on.
- key: CriticalAddonsOnly
operator: Exists
priorityClassName: system-node-critical
containers:
- image: mellanox/k8s-rdma-shared-dev-plugin
name: k8s-rdma-shared-dp-ds
Expand Down

0 comments on commit 47a7a5d

Please sign in to comment.