From c93a73d2cb9553559242337adf1aa5dc91fc61d3 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 7 Aug 2022 13:37:32 +0100 Subject: [PATCH] Added marcusnoble.com Signed-off-by: Marcus Noble --- manifests/_apps/marcusnoble.yaml | 28 +++++++++ manifests/marcusnoble/marcusnoble.yaml | 79 ++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 manifests/_apps/marcusnoble.yaml create mode 100644 manifests/marcusnoble/marcusnoble.yaml diff --git a/manifests/_apps/marcusnoble.yaml b/manifests/_apps/marcusnoble.yaml new file mode 100644 index 0000000..ee52aca --- /dev/null +++ b/manifests/_apps/marcusnoble.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: marcusnoble + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cluster.fun + destination: + namespace: marcusnoble + name: cluster-fun (scaleway) + source: + path: manifests/marcusnoble + 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/marcusnoble/marcusnoble.yaml b/manifests/marcusnoble/marcusnoble.yaml new file mode 100644 index 0000000..56b5ffb --- /dev/null +++ b/manifests/marcusnoble/marcusnoble.yaml @@ -0,0 +1,79 @@ +apiVersion: v1 +kind: Service +metadata: + name: marcusnoble + namespace: marcusnoble +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: 8080 + name: web + selector: + app: marcusnoble +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: marcusnoble + namespace: marcusnoble +spec: + replicas: 1 + selector: + matchLabels: + app: marcusnoble + template: + metadata: + labels: + app: marcusnoble + spec: + containers: + - name: web + image: rg.fr-par.scw.cloud/averagemarcus/marcusnoble:latest + imagePullPolicy: Always + ports: + - containerPort: 8080 + name: web + resources: + limits: + memory: 50Mi + requests: + memory: 50Mi + # livenessProbe: + # httpGet: + # path: /healthz + # port: web + # initialDelaySeconds: 10 + # readinessProbe: + # httpGet: + # path: /healthz + # port: web + # initialDelaySeconds: 10 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: marcusnoble + namespace: marcusnoble + annotations: + cert-manager.io/cluster-issuer: letsencrypt + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" +spec: + ingressClassName: nginx + tls: + - hosts: + - marcusnoble.com + secretName: marcusnoble-ingress + rules: + - host: marcusnoble.com + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: marcusnoble + port: + number: 80 + +---