Skip to content

Commit

Permalink
chore: update manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard committed Nov 4, 2023
1 parent 46c6ad7 commit 5a60d54
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 39 deletions.
File renamed without changes.
15 changes: 15 additions & 0 deletions hack/02_priorities.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: high-priority
value: 100
globalDefault: false
description: "This priority class is an example."
---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: low-priority
value: 0
globalDefault: false
description: "This priority class is an example."
25 changes: 25 additions & 0 deletions hack/03_high-priority-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: high-priority-workload
labels:
app: high-priority-workload
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: high-priority-workload
template:
metadata:
labels:
app: high-priority-workload
spec:
schedulerName: kube-scheduler-siderolabs
priorityClassName: high-priority
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
25 changes: 25 additions & 0 deletions hack/04_low-priority-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: low-priority-workload
labels:
app: low-priority-workload
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: low-priority-workload
template:
metadata:
labels:
app: low-priority-workload
spec:
schedulerName: kube-scheduler-siderolabs
priorityClassName: low-priority
containers:
- name: low-priority-workload
image: nginx:1.14.2
ports:
- containerPort: 80
39 changes: 0 additions & 39 deletions hack/example.yaml

This file was deleted.

0 comments on commit 5a60d54

Please sign in to comment.