diff --git a/apps/templates/phocas-lustrum-folder.yaml b/apps/templates/phocas-lustrum-folder.yaml new file mode 100644 index 0000000..b431482 --- /dev/null +++ b/apps/templates/phocas-lustrum-folder.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: phocas-lustrum + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: https://github.com/rubenhensen/k8scd.git + targetRevision: HEAD + path: phocas-lustrum + destination: + server: https://kubernetes.default.svc + namespace: phocas-lustrum + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: true diff --git a/phocas-lustrum/deployment.yaml b/phocas-lustrum/deployment.yaml new file mode 100644 index 0000000..b017103 --- /dev/null +++ b/phocas-lustrum/deployment.yaml @@ -0,0 +1,32 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: phocas-lustrum + name: phocas-lustrum +spec: + replicas: 1 + selector: + matchLabels: + app: phocas-lustrum + strategy: + type: Recreate + template: + metadata: + labels: + app: phocas-lustrum + spec: + containers: + - image: ghcr.io/rubenhensen/phocas-lustrum-demo:latest + name: phocas-lustrum + ports: + - containerPort: 3000 + protocol: TCP + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "256Mi" + cpu: "250m" + restartPolicy: Always diff --git a/phocas-lustrum/ingress.yaml b/phocas-lustrum/ingress.yaml new file mode 100644 index 0000000..d399c0d --- /dev/null +++ b/phocas-lustrum/ingress.yaml @@ -0,0 +1,24 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: phocas-lustrum-ingress + annotations: + cert-manager.io/cluster-issuer: prod-cluster-issuer + nginx.ingress.kubernetes.io/backend-protocol: "HTTP" +spec: + ingressClassName: nginx + rules: + - host: phocaslustrum.rubenhensen.nl + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: phocas-lustrum + port: + number: 80 + tls: + - secretName: letsencrypt-prod + hosts: + - phocaslustrum.rubenhensen.nl diff --git a/phocas-lustrum/service.yaml b/phocas-lustrum/service.yaml new file mode 100644 index 0000000..a3fec8e --- /dev/null +++ b/phocas-lustrum/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: phocas-lustrum + name: phocas-lustrum +spec: + ports: + - name: "http" + port: 80 + targetPort: 3000 + selector: + app: phocas-lustrum