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