Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
chaseSpace committed Nov 13, 2023
1 parent 9022052 commit c39be75
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pod_use_priorityClass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: high-priority
value: 1000000
globalDefault: false
#preemptionPolicy: Never
description: "此优先级类应仅用于 XYZ 服务 Pod。"
---
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
env: test
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
priorityClassName: high-priority

0 comments on commit c39be75

Please sign in to comment.