diff --git a/manifests/_apps/priority-classes.yaml b/manifests/_apps/priority-classes.yaml new file mode 100644 index 0000000..ba79683 --- /dev/null +++ b/manifests/_apps/priority-classes.yaml @@ -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 +--- diff --git a/manifests/auth-proxy/proxy.yaml b/manifests/auth-proxy/proxy.yaml index 0c52b19..4f5ba95 100644 --- a/manifests/auth-proxy/proxy.yaml +++ b/manifests/auth-proxy/proxy.yaml @@ -38,6 +38,7 @@ spec: labels: app: internal-proxy spec: + priorityClassName: critical serviceAccountName: default dnsPolicy: ClusterFirst dnsConfig: diff --git a/manifests/base64/base64.yaml b/manifests/base64/base64.yaml index 1e6e571..faaa98e 100644 --- a/manifests/base64/base64.yaml +++ b/manifests/base64/base64.yaml @@ -29,6 +29,7 @@ spec: spec: imagePullSecrets: - name: docker-config + priorityClassName: low containers: - name: web image: rg.fr-par.scw.cloud/averagemarcus/base64:latest diff --git a/manifests/civo-versions/civo-versions.yaml b/manifests/civo-versions/civo-versions.yaml index ceb97f0..2b6bf86 100644 --- a/manifests/civo-versions/civo-versions.yaml +++ b/manifests/civo-versions/civo-versions.yaml @@ -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 diff --git a/manifests/gitea/gitea.yaml b/manifests/gitea/gitea.yaml index d4fa91f..84338a7 100644 --- a/manifests/gitea/gitea.yaml +++ b/manifests/gitea/gitea.yaml @@ -40,6 +40,7 @@ spec: labels: app: git spec: + priorityClassName: critical containers: - name: git image: gitea/gitea:1.24.6 diff --git a/manifests/grist/grist.yaml b/manifests/grist/grist.yaml index 1bf95af..b535de9 100644 --- a/manifests/grist/grist.yaml +++ b/manifests/grist/grist.yaml @@ -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 diff --git a/manifests/link/link.yaml b/manifests/link/link.yaml index bb7aedf..1d366e9 100644 --- a/manifests/link/link.yaml +++ b/manifests/link/link.yaml @@ -69,6 +69,7 @@ spec: labels: app: link spec: + priorityClassName: critical containers: - name: web image: rg.fr-par.scw.cloud/averagemarcus/link:latest diff --git a/manifests/mastodon-digest/mastodon_digest.yaml b/manifests/mastodon-digest/mastodon_digest.yaml index f0041ad..011d1ba 100644 --- a/manifests/mastodon-digest/mastodon_digest.yaml +++ b/manifests/mastodon-digest/mastodon_digest.yaml @@ -123,6 +123,7 @@ spec: spec: imagePullSecrets: - name: docker-config + priorityClassName: low containers: - args: - --cookie-secure=false diff --git a/manifests/mealie/mealie.yaml b/manifests/mealie/mealie.yaml index 50623f6..109ff33 100644 --- a/manifests/mealie/mealie.yaml +++ b/manifests/mealie/mealie.yaml @@ -28,6 +28,7 @@ spec: labels: app: mealie spec: + priorityClassName: critical containers: - name: frontend image: ghcr.io/mealie-recipes/mealie:v3.2.0 diff --git a/manifests/nextcloud_chart/manifest.yaml b/manifests/nextcloud_chart/manifest.yaml index 39d26a5..f061aaf 100644 --- a/manifests/nextcloud_chart/manifest.yaml +++ b/manifests/nextcloud_chart/manifest.yaml @@ -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" diff --git a/manifests/outline/outline.yaml b/manifests/outline/outline.yaml index c064534..73d95b9 100644 --- a/manifests/outline/outline.yaml +++ b/manifests/outline/outline.yaml @@ -43,6 +43,7 @@ spec: labels: app.kubernetes.io/name: outline spec: + priorityClassName: critical containers: - name: outline image: outlinewiki/outline:0.87.3 diff --git a/manifests/priority-classes/critical.yaml b/manifests/priority-classes/critical.yaml new file mode 100644 index 0000000..624cc60 --- /dev/null +++ b/manifests/priority-classes/critical.yaml @@ -0,0 +1,7 @@ +apiVersion: scheduling.k8s.io/v1 +kind: PriorityClass +metadata: + name: critical +value: 1000 +globalDefault: false +preemptionPolicy: PreemptLowerPriority diff --git a/manifests/priority-classes/low.yaml b/manifests/priority-classes/low.yaml new file mode 100644 index 0000000..767f486 --- /dev/null +++ b/manifests/priority-classes/low.yaml @@ -0,0 +1,7 @@ +apiVersion: scheduling.k8s.io/v1 +kind: PriorityClass +metadata: + name: low +value: 10 +globalDefault: false +preemptionPolicy: Never diff --git a/manifests/priority-classes/normal.yaml b/manifests/priority-classes/normal.yaml new file mode 100644 index 0000000..fa244b3 --- /dev/null +++ b/manifests/priority-classes/normal.yaml @@ -0,0 +1,7 @@ +apiVersion: scheduling.k8s.io/v1 +kind: PriorityClass +metadata: + name: normal +value: 100 +globalDefault: true +preemptionPolicy: PreemptLowerPriority diff --git a/manifests/redis/redis.yaml b/manifests/redis/redis.yaml index cc7e738..f3a6666 100644 --- a/manifests/redis/redis.yaml +++ b/manifests/redis/redis.yaml @@ -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 diff --git a/manifests/svg-to-dxf/svg-to-dxf.yaml b/manifests/svg-to-dxf/svg-to-dxf.yaml index bdfb00c..3acbe97 100644 --- a/manifests/svg-to-dxf/svg-to-dxf.yaml +++ b/manifests/svg-to-dxf/svg-to-dxf.yaml @@ -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 diff --git a/manifests/text-to-dxf/text-to-dxf.yaml b/manifests/text-to-dxf/text-to-dxf.yaml index 2df9653..6daeb28 100644 --- a/manifests/text-to-dxf/text-to-dxf.yaml +++ b/manifests/text-to-dxf/text-to-dxf.yaml @@ -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