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 + +---