Added priority classes
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
25
manifests/_apps/priority-classes.yaml
Normal file
25
manifests/_apps/priority-classes.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: cluster-fun-priority-classes
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: cluster.fun
|
||||
destination:
|
||||
namespace: kube-system
|
||||
name: cluster-fun (v2)
|
||||
source:
|
||||
path: manifests/priority-classes
|
||||
repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git"
|
||||
targetRevision: HEAD
|
||||
syncPolicy:
|
||||
automated: {}
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
ignoreDifferences:
|
||||
- kind: Secret
|
||||
jsonPointers:
|
||||
- /data
|
||||
---
|
@@ -38,6 +38,7 @@ spec:
|
||||
labels:
|
||||
app: internal-proxy
|
||||
spec:
|
||||
priorityClassName: critical
|
||||
serviceAccountName: default
|
||||
dnsPolicy: ClusterFirst
|
||||
dnsConfig:
|
||||
|
@@ -29,6 +29,7 @@ spec:
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: docker-config
|
||||
priorityClassName: low
|
||||
containers:
|
||||
- name: web
|
||||
image: rg.fr-par.scw.cloud/averagemarcus/base64:latest
|
||||
|
@@ -38,6 +38,7 @@ spec:
|
||||
labels:
|
||||
app: civo-versions
|
||||
spec:
|
||||
priorityClassName: low
|
||||
containers:
|
||||
- name: web
|
||||
image: rg.fr-par.scw.cloud/averagemarcus/civo-versions:latest
|
||||
|
@@ -40,6 +40,7 @@ spec:
|
||||
labels:
|
||||
app: git
|
||||
spec:
|
||||
priorityClassName: critical
|
||||
containers:
|
||||
- name: git
|
||||
image: gitea/gitea:1.24.6
|
||||
|
@@ -70,6 +70,7 @@ spec:
|
||||
app.kubernetes.io/name: grist
|
||||
spec:
|
||||
serviceAccountName: grist
|
||||
priorityClassName: critical
|
||||
containers:
|
||||
- name: grist
|
||||
image: gristlabs/grist-oss:1.7.3
|
||||
|
@@ -69,6 +69,7 @@ spec:
|
||||
labels:
|
||||
app: link
|
||||
spec:
|
||||
priorityClassName: critical
|
||||
containers:
|
||||
- name: web
|
||||
image: rg.fr-par.scw.cloud/averagemarcus/link:latest
|
||||
|
@@ -123,6 +123,7 @@ spec:
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: docker-config
|
||||
priorityClassName: low
|
||||
containers:
|
||||
- args:
|
||||
- --cookie-secure=false
|
||||
|
@@ -28,6 +28,7 @@ spec:
|
||||
labels:
|
||||
app: mealie
|
||||
spec:
|
||||
priorityClassName: critical
|
||||
containers:
|
||||
- name: frontend
|
||||
image: ghcr.io/mealie-recipes/mealie:v3.2.0
|
||||
|
@@ -201,6 +201,7 @@ spec:
|
||||
app.kubernetes.io/component: app
|
||||
nextcloud-nextcloud-redis-client: "true"
|
||||
spec:
|
||||
priorityClassName: critical
|
||||
containers:
|
||||
- name: nextcloud
|
||||
image: "nextcloud:31.0.8-apache"
|
||||
|
@@ -43,6 +43,7 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/name: outline
|
||||
spec:
|
||||
priorityClassName: critical
|
||||
containers:
|
||||
- name: outline
|
||||
image: outlinewiki/outline:0.87.3
|
||||
|
7
manifests/priority-classes/critical.yaml
Normal file
7
manifests/priority-classes/critical.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: scheduling.k8s.io/v1
|
||||
kind: PriorityClass
|
||||
metadata:
|
||||
name: critical
|
||||
value: 1000
|
||||
globalDefault: false
|
||||
preemptionPolicy: PreemptLowerPriority
|
7
manifests/priority-classes/low.yaml
Normal file
7
manifests/priority-classes/low.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: scheduling.k8s.io/v1
|
||||
kind: PriorityClass
|
||||
metadata:
|
||||
name: low
|
||||
value: 10
|
||||
globalDefault: false
|
||||
preemptionPolicy: Never
|
7
manifests/priority-classes/normal.yaml
Normal file
7
manifests/priority-classes/normal.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: scheduling.k8s.io/v1
|
||||
kind: PriorityClass
|
||||
metadata:
|
||||
name: normal
|
||||
value: 100
|
||||
globalDefault: true
|
||||
preemptionPolicy: PreemptLowerPriority
|
@@ -327,6 +327,7 @@ spec:
|
||||
weight: 1
|
||||
nodeAffinity:
|
||||
terminationGracePeriodSeconds: 30
|
||||
priorityClassName: critical
|
||||
containers:
|
||||
- name: redis
|
||||
image: docker.io/bitnamilegacy/redis:7.2.4-debian-11-r11
|
||||
|
@@ -27,6 +27,7 @@ spec:
|
||||
labels:
|
||||
app: svg-to-dxf
|
||||
spec:
|
||||
priorityClassName: low
|
||||
containers:
|
||||
- name: web
|
||||
image: rg.fr-par.scw.cloud/averagemarcus/svg-to-dxf:latest
|
||||
|
@@ -27,6 +27,7 @@ spec:
|
||||
labels:
|
||||
app: text-to-dxf
|
||||
spec:
|
||||
priorityClassName: low
|
||||
containers:
|
||||
- name: web
|
||||
image: rg.fr-par.scw.cloud/averagemarcus/text-to-dxf:latest
|
||||
|
Reference in New Issue
Block a user