From 2272911d7d7158c44b3c1865feb6dc15fadcdb94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Groothuis?= Date: Thu, 23 Oct 2025 19:01:14 +0200 Subject: [PATCH] chore(gitea): updated validate k8s --- .gitea/workflows/k8s-validation.yaml | 7 ++- manifests/artemis/argocd/ingressRoute.yaml | 4 +- manifests/artemis/argocd/kustomization.yaml | 3 +- manifests/artemis/uptime-kuma/cert.yaml | 1 - manifests/artemis/uptime-kuma/deployment.yaml | 63 ++++++++++--------- .../artemis/uptime-kuma/ingressRoute.yaml | 1 + manifests/artemis/uptime-kuma/pvc.yaml | 1 + manifests/artemis/uptime-kuma/service.yaml | 1 + manifests/artemis/vault/ingress.yaml | 1 + 9 files changed, 45 insertions(+), 37 deletions(-) diff --git a/.gitea/workflows/k8s-validation.yaml b/.gitea/workflows/k8s-validation.yaml index 703df63..11f3de7 100644 --- a/.gitea/workflows/k8s-validation.yaml +++ b/.gitea/workflows/k8s-validation.yaml @@ -3,11 +3,12 @@ run-name: ${{ gitea.actor }} is validating K8s manifests on: [push] jobs: - validate-k8s-manifests: + validate-manifests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: validate manifests + - name: 📥Checkout + uses: actions/checkout@v3 + - name: 🚀Validating the manifests uses: frenck/action-yamllint@v1.5.0 with: path: "manifests/" diff --git a/manifests/artemis/argocd/ingressRoute.yaml b/manifests/artemis/argocd/ingressRoute.yaml index a03be2a..b437790 100644 --- a/manifests/artemis/argocd/ingressRoute.yaml +++ b/manifests/artemis/argocd/ingressRoute.yaml @@ -15,7 +15,9 @@ spec: - name: argocd-server port: 80 - kind: Rule - match: Host(`cd.dgse.cloud`) && Headers(`Content-Type`, `application/grpc`) + match: > + Host(`cd.dgse.cloud`) && + Headers(`Content-Type`, `application/grpc`) priority: 11 services: - name: argocd-server diff --git a/manifests/artemis/argocd/kustomization.yaml b/manifests/artemis/argocd/kustomization.yaml index ff80074..c0325e4 100644 --- a/manifests/artemis/argocd/kustomization.yaml +++ b/manifests/artemis/argocd/kustomization.yaml @@ -94,7 +94,8 @@ patches: name: argocd-server rules: - apiGroups: ["argoproj.io"] - resources: ["applications", "applications/status", "applications/finalizers"] + resources: ["applications", "applications/status", + "applications/finalizers"] verbs: ["get", "list", "watch", "update", "patch", "delete"] - apiGroups: ["argoproj.io"] resources: ["appprojects"] diff --git a/manifests/artemis/uptime-kuma/cert.yaml b/manifests/artemis/uptime-kuma/cert.yaml index de7cb36..b88526e 100644 --- a/manifests/artemis/uptime-kuma/cert.yaml +++ b/manifests/artemis/uptime-kuma/cert.yaml @@ -10,4 +10,3 @@ spec: kind: ClusterIssuer dnsNames: - uptime.dgse.cloud - diff --git a/manifests/artemis/uptime-kuma/deployment.yaml b/manifests/artemis/uptime-kuma/deployment.yaml index cf54af8..e15b911 100644 --- a/manifests/artemis/uptime-kuma/deployment.yaml +++ b/manifests/artemis/uptime-kuma/deployment.yaml @@ -1,3 +1,4 @@ +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -19,35 +20,35 @@ spec: app: uptime-kuma spec: containers: - - name: uptime-kuma - image: louislam/uptime-kuma:1.23.16 - imagePullPolicy: IfNotPresent - ports: - - containerPort: 3001 - name: web-ui - resources: - limits: - cpu: 200m - memory: 512Mi - requests: - cpu: 50m - memory: 128Mi - livenessProbe: - tcpSocket: - port: web-ui - initialDelaySeconds: 60 - periodSeconds: 10 - readinessProbe: - httpGet: - scheme: HTTP - path: / - port: web-ui - initialDelaySeconds: 30 - periodSeconds: 10 - volumeMounts: - - name: data - mountPath: /app/data + - name: uptime-kuma + image: louislam/uptime-kuma:1.23.16 + imagePullPolicy: IfNotPresent + ports: + - containerPort: 3001 + name: web-ui + resources: + limits: + cpu: 200m + memory: 512Mi + requests: + cpu: 50m + memory: 128Mi + livenessProbe: + tcpSocket: + port: web-ui + initialDelaySeconds: 60 + periodSeconds: 10 + readinessProbe: + httpGet: + scheme: HTTP + path: / + port: web-ui + initialDelaySeconds: 30 + periodSeconds: 10 + volumeMounts: + - name: data + mountPath: /app/data volumes: - - name: data - persistentVolumeClaim: - claimName: uptime-kuma-pvc + - name: data + persistentVolumeClaim: + claimName: uptime-kuma-pvc diff --git a/manifests/artemis/uptime-kuma/ingressRoute.yaml b/manifests/artemis/uptime-kuma/ingressRoute.yaml index 9844498..8c8df7b 100644 --- a/manifests/artemis/uptime-kuma/ingressRoute.yaml +++ b/manifests/artemis/uptime-kuma/ingressRoute.yaml @@ -1,3 +1,4 @@ +--- apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: diff --git a/manifests/artemis/uptime-kuma/pvc.yaml b/manifests/artemis/uptime-kuma/pvc.yaml index 5924b8e..17a1ed1 100644 --- a/manifests/artemis/uptime-kuma/pvc.yaml +++ b/manifests/artemis/uptime-kuma/pvc.yaml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/manifests/artemis/uptime-kuma/service.yaml b/manifests/artemis/uptime-kuma/service.yaml index 7fe8826..9f52691 100644 --- a/manifests/artemis/uptime-kuma/service.yaml +++ b/manifests/artemis/uptime-kuma/service.yaml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: Service metadata: diff --git a/manifests/artemis/vault/ingress.yaml b/manifests/artemis/vault/ingress.yaml index d599374..ed518d9 100644 --- a/manifests/artemis/vault/ingress.yaml +++ b/manifests/artemis/vault/ingress.yaml @@ -1,3 +1,4 @@ +--- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: