aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kube/alrest/x/kustomization.yaml1
-rw-r--r--kube/alrest/x/todayinmarch2020/deployment.yaml51
-rw-r--r--kube/alrest/x/todayinmarch2020/ingress.yaml25
-rw-r--r--kube/alrest/x/todayinmarch2020/kustomization.yaml4
-rw-r--r--kube/alrest/x/todayinmarch2020/service.yaml14
5 files changed, 95 insertions, 0 deletions
diff --git a/kube/alrest/x/kustomization.yaml b/kube/alrest/x/kustomization.yaml
index b10e627..443accd 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 0000000..93b292b
--- /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 0000000..1592f0a
--- /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 0000000..6b1764d
--- /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 0000000..da4ea7b
--- /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