From 0ec5e3c03dc08057b845a0668f4900131e779304 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 3 Oct 2023 18:44:08 +0100 Subject: [PATCH] Added civo-versions Signed-off-by: Marcus Noble --- manifests/_apps/civo-versions.yaml | 28 +++++++ manifests/civo-versions/civo-versions.yaml | 88 ++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 manifests/_apps/civo-versions.yaml create mode 100644 manifests/civo-versions/civo-versions.yaml diff --git a/manifests/_apps/civo-versions.yaml b/manifests/_apps/civo-versions.yaml new file mode 100644 index 0000000..935cf37 --- /dev/null +++ b/manifests/_apps/civo-versions.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: civo-versions + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: civo-versions + name: civo + source: + path: manifests/civo-versions + repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git" + targetRevision: HEAD + syncPolicy: + automated: {} + syncOptions: + - CreateNamespace=true + ignoreDifferences: + - kind: Secret + jsonPointers: + - /data + - group: apps + kind: Deployment + jqPathExpressions: + - .spec.template.spec.containers[]?.image diff --git a/manifests/civo-versions/civo-versions.yaml b/manifests/civo-versions/civo-versions.yaml new file mode 100644 index 0000000..13fbd3c --- /dev/null +++ b/manifests/civo-versions/civo-versions.yaml @@ -0,0 +1,88 @@ +apiVersion: v1 +kind: Secret +metadata: + name: civo-versions + namespace: civo-versions + annotations: + kube-1password: ybo7axn7wpks4z3u3gjhibnu5i + kube-1password/vault: Kubernetes + kube-1password/secret-text-parse: "true" +type: Opaque +--- +apiVersion: v1 +kind: Service +metadata: + name: civo-versions + namespace: civo-versions +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: web + name: web + selector: + app: civo-versions +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: civo-versions + namespace: civo-versions +spec: + replicas: 1 + selector: + matchLabels: + app: civo-versions + template: + metadata: + labels: + app: civo-versions + spec: + containers: + - name: web + image: rg.fr-par.scw.cloud/averagemarcus/civo-versions:latest + imagePullPolicy: Always + ports: + - containerPort: 8000 + name: web + env: + - name: PORT + value: "8000" + - name: API_KEY + valueFrom: + secretKeyRef: + name: civo-versions + key: API_KEY + resources: + limits: + memory: 10Mi + requests: + memory: 10Mi +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: civo-versions + namespace: civo-versions + 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: + - civo-versions.cluster.fun + secretName: civo-versions-ingress + rules: + - host: civo-versions.cluster.fun + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: civo-versions + port: + number: 80