Skip to content

Commit

Permalink
Cherry-Pick: Configure priorityClass for operator (#1453)
Browse files Browse the repository at this point in the history
  • Loading branch information
pPrecel authored Feb 13, 2025
1 parent 48e1270 commit ac031f9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/operator/base/deployment/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
control-plane: operator
sidecar.istio.io/inject: "false"
spec:
priorityClassName: "operator-priority"
securityContext:
runAsNonRoot: true
containers:
Expand Down
1 change: 1 addition & 0 deletions config/operator/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ resources:
- ./deployment
- ./rbac
- ./ui-extensions
- ./priority-class
4 changes: 4 additions & 0 deletions config/operator/base/priority-class/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- priority_class.yaml
8 changes: 8 additions & 0 deletions config/operator/base/priority-class/priority_class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: operator-priority
labels: {}
value: 2000000
globalDefault: false
description: "Scheduling priority of the serverless-operator. Must not be blocked by unschedulable user workloads."

0 comments on commit ac031f9

Please sign in to comment.