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:
|
labels:
|
||||||
app: internal-proxy
|
app: internal-proxy
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: critical
|
||||||
serviceAccountName: default
|
serviceAccountName: default
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
|
@@ -29,6 +29,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: docker-config
|
- name: docker-config
|
||||||
|
priorityClassName: low
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: rg.fr-par.scw.cloud/averagemarcus/base64:latest
|
image: rg.fr-par.scw.cloud/averagemarcus/base64:latest
|
||||||
|
@@ -38,6 +38,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: civo-versions
|
app: civo-versions
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: low
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: rg.fr-par.scw.cloud/averagemarcus/civo-versions:latest
|
image: rg.fr-par.scw.cloud/averagemarcus/civo-versions:latest
|
||||||
|
@@ -40,6 +40,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: git
|
app: git
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: critical
|
||||||
containers:
|
containers:
|
||||||
- name: git
|
- name: git
|
||||||
image: gitea/gitea:1.24.6
|
image: gitea/gitea:1.24.6
|
||||||
|
@@ -70,6 +70,7 @@ spec:
|
|||||||
app.kubernetes.io/name: grist
|
app.kubernetes.io/name: grist
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: grist
|
serviceAccountName: grist
|
||||||
|
priorityClassName: critical
|
||||||
containers:
|
containers:
|
||||||
- name: grist
|
- name: grist
|
||||||
image: gristlabs/grist-oss:1.7.3
|
image: gristlabs/grist-oss:1.7.3
|
||||||
|
@@ -69,6 +69,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: link
|
app: link
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: critical
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: rg.fr-par.scw.cloud/averagemarcus/link:latest
|
image: rg.fr-par.scw.cloud/averagemarcus/link:latest
|
||||||
|
@@ -123,6 +123,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: docker-config
|
- name: docker-config
|
||||||
|
priorityClassName: low
|
||||||
containers:
|
containers:
|
||||||
- args:
|
- args:
|
||||||
- --cookie-secure=false
|
- --cookie-secure=false
|
||||||
|
@@ -28,6 +28,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: mealie
|
app: mealie
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: critical
|
||||||
containers:
|
containers:
|
||||||
- name: frontend
|
- name: frontend
|
||||||
image: ghcr.io/mealie-recipes/mealie:v3.2.0
|
image: ghcr.io/mealie-recipes/mealie:v3.2.0
|
||||||
|
@@ -201,6 +201,7 @@ spec:
|
|||||||
app.kubernetes.io/component: app
|
app.kubernetes.io/component: app
|
||||||
nextcloud-nextcloud-redis-client: "true"
|
nextcloud-nextcloud-redis-client: "true"
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: critical
|
||||||
containers:
|
containers:
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
image: "nextcloud:31.0.8-apache"
|
image: "nextcloud:31.0.8-apache"
|
||||||
|
@@ -43,6 +43,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: outline
|
app.kubernetes.io/name: outline
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: critical
|
||||||
containers:
|
containers:
|
||||||
- name: outline
|
- name: outline
|
||||||
image: outlinewiki/outline:0.87.3
|
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
|
weight: 1
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
|
priorityClassName: critical
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: docker.io/bitnamilegacy/redis:7.2.4-debian-11-r11
|
image: docker.io/bitnamilegacy/redis:7.2.4-debian-11-r11
|
||||||
|
@@ -27,6 +27,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: svg-to-dxf
|
app: svg-to-dxf
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: low
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: rg.fr-par.scw.cloud/averagemarcus/svg-to-dxf:latest
|
image: rg.fr-par.scw.cloud/averagemarcus/svg-to-dxf:latest
|
||||||
|
@@ -27,6 +27,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: text-to-dxf
|
app: text-to-dxf
|
||||||
spec:
|
spec:
|
||||||
|
priorityClassName: low
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: rg.fr-par.scw.cloud/averagemarcus/text-to-dxf:latest
|
image: rg.fr-par.scw.cloud/averagemarcus/text-to-dxf:latest
|
||||||
|
Reference in New Issue
Block a user