From 5a91aa8bfbe4c87c32eb4f310d2700d0855a186a Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 26 Jan 2024 13:51:21 +0000 Subject: [PATCH] Added devstats-viewer Signed-off-by: Marcus Noble --- manifests/_apps/devstats-viewer.yaml | 24 +++++++ .../devstats-viewer/devstats-viewer.yaml | 71 +++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 manifests/_apps/devstats-viewer.yaml create mode 100644 manifests/devstats-viewer/devstats-viewer.yaml diff --git a/manifests/_apps/devstats-viewer.yaml b/manifests/_apps/devstats-viewer.yaml new file mode 100644 index 0000000..654f79b --- /dev/null +++ b/manifests/_apps/devstats-viewer.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: devstats-viewer + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: devstats-viewer + name: cluster-fun (scaleway) + source: + path: manifests/devstats-viewer + repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git" + targetRevision: HEAD + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: {} + ignoreDifferences: + - kind: Secret + jsonPointers: + - /data diff --git a/manifests/devstats-viewer/devstats-viewer.yaml b/manifests/devstats-viewer/devstats-viewer.yaml new file mode 100644 index 0000000..7dc0122 --- /dev/null +++ b/manifests/devstats-viewer/devstats-viewer.yaml @@ -0,0 +1,71 @@ +apiVersion: v1 +kind: Service +metadata: + name: devstats-viewer + namespace: devstats-viewer +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: web + name: web + selector: + app: devstats-viewer +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: devstats-viewer + namespace: devstats-viewer +spec: + replicas: 2 + selector: + matchLabels: + app: devstats-viewer + template: + metadata: + labels: + app: devstats-viewer + spec: + imagePullSecrets: + - name: docker-config + containers: + - name: web + image: rg.fr-par.scw.cloud/averagemarcus/devstats-viewer:latest + imagePullPolicy: Always + ports: + - containerPort: 80 + name: web + resources: + limits: + memory: 10Mi + requests: + memory: 10Mi +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: devstats-viewer + namespace: devstats-viewer + annotations: + cert-manager.io/cluster-issuer: letsencrypt + kubernetes.io/ingress.class: traefik + traefik.ingress.kubernetes.io/router.tls: "true" + ingress.kubernetes.io/ssl-redirect: "true" + traefik.ingress.kubernetes.io/router.entrypoints: websecure +spec: + tls: + - hosts: + - devstats-viewer.cluster.fun + secretName: devstats-viewer-ingress + rules: + - host: devstats-viewer.cluster.fun + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: devstats-viewer + port: + number: 80