aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kubernetes/namespaces/codejam-winners/gardenias/deployment.yaml28
-rw-r--r--kubernetes/namespaces/codejam-winners/gardenias/ingress.yaml25
-rw-r--r--kubernetes/namespaces/codejam-winners/gardenias/service.yaml12
-rw-r--r--kubernetes/namespaces/codejam-winners/monsteras/deployment.yaml28
-rw-r--r--kubernetes/namespaces/codejam-winners/monsteras/ingress.yaml25
-rw-r--r--kubernetes/namespaces/codejam-winners/monsteras/service.yaml12
-rw-r--r--kubernetes/namespaces/codejam-winners/tulips/deployment.yaml28
-rw-r--r--kubernetes/namespaces/codejam-winners/tulips/ingress.yaml25
-rw-r--r--kubernetes/namespaces/codejam-winners/tulips/service.yaml12
9 files changed, 195 insertions, 0 deletions
diff --git a/kubernetes/namespaces/codejam-winners/gardenias/deployment.yaml b/kubernetes/namespaces/codejam-winners/gardenias/deployment.yaml
new file mode 100644
index 0000000..a7e9598
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/gardenias/deployment.yaml
@@ -0,0 +1,28 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: gardenias
+ namespace: codejam-winners
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: gardenias
+ template:
+ metadata:
+ labels:
+ app: gardenias
+ spec:
+ containers:
+ - name: gardenias
+ image: ghcr.io/python-discord/cj-gardenias
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 80
+ name: http
+ securityContext:
+ readOnlyRootFilesystem: true
+ securityContext:
+ fsGroup: 2000
+ runAsUser: 1000
+ runAsNonRoot: true
diff --git a/kubernetes/namespaces/codejam-winners/gardenias/ingress.yaml b/kubernetes/namespaces/codejam-winners/gardenias/ingress.yaml
new file mode 100644
index 0000000..fd1e14b
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/gardenias/ingress.yaml
@@ -0,0 +1,25 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ annotations:
+ nginx.ingress.kubernetes.io/auth-tls-verify-client: "on"
+ nginx.ingress.kubernetes.io/auth-tls-secret: "kube-system/mtls-client-crt-bundle"
+ nginx.ingress.kubernetes.io/auth-tls-error-page: "https://maintenance.python-discord.workers.dev/"
+ name: gardenias
+ namespace: codejam-winners
+spec:
+ tls:
+ - hosts:
+ - "*.pythondiscord.com"
+ secretName: pythondiscord.com-tls
+ rules:
+ - host: gardenias.pythondiscord.com
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: gardenias
+ port:
+ number: 80
diff --git a/kubernetes/namespaces/codejam-winners/gardenias/service.yaml b/kubernetes/namespaces/codejam-winners/gardenias/service.yaml
new file mode 100644
index 0000000..3086e61
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/gardenias/service.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: gardenias
+ namespace: codejam-winners
+spec:
+ selector:
+ app: gardenias
+ ports:
+ - protocol: TCP
+ port: 80
+ targetPort: 8000
diff --git a/kubernetes/namespaces/codejam-winners/monsteras/deployment.yaml b/kubernetes/namespaces/codejam-winners/monsteras/deployment.yaml
new file mode 100644
index 0000000..30277cd
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/monsteras/deployment.yaml
@@ -0,0 +1,28 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: monsteras
+ namespace: codejam-winners
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: monsteras
+ template:
+ metadata:
+ labels:
+ app: monsteras
+ spec:
+ containers:
+ - name: monsteras
+ image: ghcr.io/python-discord/cj-monsteras
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 80
+ name: http
+ securityContext:
+ readOnlyRootFilesystem: true
+ securityContext:
+ fsGroup: 2000
+ runAsUser: 1000
+ runAsNonRoot: true
diff --git a/kubernetes/namespaces/codejam-winners/monsteras/ingress.yaml b/kubernetes/namespaces/codejam-winners/monsteras/ingress.yaml
new file mode 100644
index 0000000..444d0ed
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/monsteras/ingress.yaml
@@ -0,0 +1,25 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ annotations:
+ nginx.ingress.kubernetes.io/auth-tls-verify-client: "on"
+ nginx.ingress.kubernetes.io/auth-tls-secret: "kube-system/mtls-client-crt-bundle"
+ nginx.ingress.kubernetes.io/auth-tls-error-page: "https://maintenance.python-discord.workers.dev/"
+ name: monsteras
+ namespace: codejam-winners
+spec:
+ tls:
+ - hosts:
+ - "*.pythondiscord.com"
+ secretName: pythondiscord.com-tls
+ rules:
+ - host: monsteras.pythondiscord.com
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: monsteras
+ port:
+ number: 80
diff --git a/kubernetes/namespaces/codejam-winners/monsteras/service.yaml b/kubernetes/namespaces/codejam-winners/monsteras/service.yaml
new file mode 100644
index 0000000..c55378e
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/monsteras/service.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: monsteras
+ namespace: codejam-winners
+spec:
+ selector:
+ app: monsteras
+ ports:
+ - protocol: TCP
+ port: 80
+ targetPort: 8080
diff --git a/kubernetes/namespaces/codejam-winners/tulips/deployment.yaml b/kubernetes/namespaces/codejam-winners/tulips/deployment.yaml
new file mode 100644
index 0000000..04effcb
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/tulips/deployment.yaml
@@ -0,0 +1,28 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: tulips
+ namespace: codejam-winners
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: tulips
+ template:
+ metadata:
+ labels:
+ app: tulips
+ spec:
+ containers:
+ - name: tulips
+ image: ghcr.io/python-discord/cj-tulips
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 80
+ name: http
+ securityContext:
+ readOnlyRootFilesystem: true
+ securityContext:
+ fsGroup: 2000
+ runAsUser: 1000
+ runAsNonRoot: true
diff --git a/kubernetes/namespaces/codejam-winners/tulips/ingress.yaml b/kubernetes/namespaces/codejam-winners/tulips/ingress.yaml
new file mode 100644
index 0000000..57e83e9
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/tulips/ingress.yaml
@@ -0,0 +1,25 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ annotations:
+ nginx.ingress.kubernetes.io/auth-tls-verify-client: "on"
+ nginx.ingress.kubernetes.io/auth-tls-secret: "kube-system/mtls-client-crt-bundle"
+ nginx.ingress.kubernetes.io/auth-tls-error-page: "https://maintenance.python-discord.workers.dev/"
+ name: tulips
+ namespace: codejam-winners
+spec:
+ tls:
+ - hosts:
+ - "*.pythondiscord.com"
+ secretName: pythondiscord.com-tls
+ rules:
+ - host: tulips.pythondiscord.com
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: tulips
+ port:
+ number: 80
diff --git a/kubernetes/namespaces/codejam-winners/tulips/service.yaml b/kubernetes/namespaces/codejam-winners/tulips/service.yaml
new file mode 100644
index 0000000..9707da9
--- /dev/null
+++ b/kubernetes/namespaces/codejam-winners/tulips/service.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: tulips
+ namespace: codejam-winners
+spec:
+ selector:
+ app: tulips
+ ports:
+ - protocol: TCP
+ port: 80
+ targetPort: 8000