From a5c92eacef6bc9141c011f5c3a541141c72e3a1d Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 21 May 2021 11:42:11 +0100 Subject: [PATCH] Added CV --- manifests/_apps/cv.yaml | 24 +++++++++++++ manifests/cv/cv.yaml | 80 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 manifests/_apps/cv.yaml create mode 100644 manifests/cv/cv.yaml diff --git a/manifests/_apps/cv.yaml b/manifests/_apps/cv.yaml new file mode 100644 index 0000000..4a8436f --- /dev/null +++ b/manifests/_apps/cv.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cv + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: cv + name: cluster-fun (scaleway) + source: + path: manifests/cv + 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/cv/cv.yaml b/manifests/cv/cv.yaml new file mode 100644 index 0000000..32ab9c4 --- /dev/null +++ b/manifests/cv/cv.yaml @@ -0,0 +1,80 @@ +apiVersion: v1 +kind: Secret +metadata: + name: docker-config + namespace: cv + annotations: + kube-1password: i6ngbk5zf4k52xgwdwnfup5bby + kube-1password/vault: Kubernetes + kube-1password/secret-text-key: .dockerconfigjson +type: kubernetes.io/dockerconfigjson +data: + .dockerconfigjson: e30= +--- +apiVersion: v1 +kind: Service +metadata: + name: cv + namespace: cv +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: web + name: web + selector: + app: cv +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cv + namespace: cv +spec: + replicas: 1 + selector: + matchLabels: + app: cv + template: + metadata: + labels: + app: cv + spec: + imagePullSecrets: + - name: docker-config + containers: + - name: web + image: docker.cluster.fun/private/cv:latest + imagePullPolicy: Always + ports: + - containerPort: 80 + name: web + resources: + limits: + memory: 10Mi + requests: + memory: 10Mi +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: cv + namespace: cv + annotations: + cert-manager.io/cluster-issuer: letsencrypt + traefik.ingress.kubernetes.io/frontend-entry-points: http,https + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/redirect-permanent: "true" +spec: + tls: + - hosts: + - cv.marcusnoble.co.uk + secretName: cv-ingress + rules: + - host: cv.marcusnoble.co.uk + http: + paths: + - path: / + backend: + serviceName: cv + servicePort: 80