From 1390f431adc4c50df6de43450a31aa2d9f8b42b5 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 8 Sep 2024 09:01:24 -0400 Subject: [PATCH] deploy todayinmarch2020 Signed-off-by: Xe Iaso --- kube/alrest/x/kustomization.yaml | 1 + .../alrest/x/todayinmarch2020/deployment.yaml | 51 +++++++++++++++++++ kube/alrest/x/todayinmarch2020/ingress.yaml | 25 +++++++++ .../x/todayinmarch2020/kustomization.yaml | 4 ++ kube/alrest/x/todayinmarch2020/service.yaml | 14 +++++ 5 files changed, 95 insertions(+) create mode 100644 kube/alrest/x/todayinmarch2020/deployment.yaml create mode 100644 kube/alrest/x/todayinmarch2020/ingress.yaml create mode 100644 kube/alrest/x/todayinmarch2020/kustomization.yaml create mode 100644 kube/alrest/x/todayinmarch2020/service.yaml diff --git a/kube/alrest/x/kustomization.yaml b/kube/alrest/x/kustomization.yaml index b10e627a..443accd1 100644 --- a/kube/alrest/x/kustomization.yaml +++ b/kube/alrest/x/kustomization.yaml @@ -2,4 +2,5 @@ resources: - hlang #- johaus - sapientwindex + - todayinmarch2020 - within.website \ No newline at end of file diff --git a/kube/alrest/x/todayinmarch2020/deployment.yaml b/kube/alrest/x/todayinmarch2020/deployment.yaml new file mode 100644 index 00000000..93b292bb --- /dev/null +++ b/kube/alrest/x/todayinmarch2020/deployment.yaml @@ -0,0 +1,51 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: todayinmarch2020 + labels: + app.kubernetes.io/name: todayinmarch2020 +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: todayinmarch2020 + template: + metadata: + labels: + app.kubernetes.io/name: todayinmarch2020 + spec: + securityContext: + fsGroup: 1000 + containers: + - name: main + image: ghcr.io/xe/x/todayinmarch2020:latest + imagePullPolicy: "Always" + resources: + limits: + cpu: "500m" + memory: "256Mi" + requests: + cpu: "250m" + memory: "128Mi" + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + runAsNonRoot: true + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + seccompProfile: + type: RuntimeDefault + livenessProbe: + httpGet: + path: / + port: 8080 + httpHeaders: + - name: X-Kubernetes + value: "is kinda okay" + initialDelaySeconds: 3 + periodSeconds: 3 + env: + - name: PORT + value: "8080" \ No newline at end of file diff --git a/kube/alrest/x/todayinmarch2020/ingress.yaml b/kube/alrest/x/todayinmarch2020/ingress.yaml new file mode 100644 index 00000000..1592f0a9 --- /dev/null +++ b/kube/alrest/x/todayinmarch2020/ingress.yaml @@ -0,0 +1,25 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: todayinmarch2020 + labels: + app.kubernetes.io/name: todayinmarch2020 + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-prod" +spec: + ingressClassName: nginx + tls: + - hosts: + - todayinmarch2020.xn--sz8hf6d.ws + secretName: todayinmarch2020-public-tls + rules: + - host: todayinmarch2020.xn--sz8hf6d.ws + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: todayinmarch2020 + port: + name: http diff --git a/kube/alrest/x/todayinmarch2020/kustomization.yaml b/kube/alrest/x/todayinmarch2020/kustomization.yaml new file mode 100644 index 00000000..6b1764d3 --- /dev/null +++ b/kube/alrest/x/todayinmarch2020/kustomization.yaml @@ -0,0 +1,4 @@ +resources: + - deployment.yaml + - service.yaml + - ingress.yaml \ No newline at end of file diff --git a/kube/alrest/x/todayinmarch2020/service.yaml b/kube/alrest/x/todayinmarch2020/service.yaml new file mode 100644 index 00000000..da4ea7bf --- /dev/null +++ b/kube/alrest/x/todayinmarch2020/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: todayinmarch2020 + labels: + app.kubernetes.io/name: todayinmarch2020 +spec: + selector: + app.kubernetes.io/name: todayinmarch2020 + ports: + - port: 80 + targetPort: 8080 + name: http + type: ClusterIP \ No newline at end of file