Skip to content

Commit b6605f4

Browse files
committed
Add the codejam winners to the k8s cluster
These will be deleted once Johannes next takes his meds
1 parent 151f357 commit b6605f4

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: monsteras
5+
namespace: codejam-winners
6+
spec:
7+
replicas: 1
8+
selector:
9+
matchLabels:
10+
app: monsteras
11+
template:
12+
metadata:
13+
labels:
14+
app: monsteras
15+
spec:
16+
containers:
17+
- name: monsteras
18+
image: ghcr.io/python-discord/cj-monsteras
19+
imagePullPolicy: Always
20+
ports:
21+
- containerPort: 80
22+
name: http
23+
securityContext:
24+
readOnlyRootFilesystem: true
25+
securityContext:
26+
fsGroup: 2000
27+
runAsUser: 1000
28+
runAsNonRoot: true
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
annotations:
5+
nginx.ingress.kubernetes.io/auth-tls-verify-client: "on"
6+
nginx.ingress.kubernetes.io/auth-tls-secret: "kube-system/mtls-client-crt-bundle"
7+
nginx.ingress.kubernetes.io/auth-tls-error-page: "https://maintenance.python-discord.workers.dev/"
8+
name: monsteras
9+
namespace: codejam-winners
10+
spec:
11+
tls:
12+
- hosts:
13+
- "*.pythondiscord.com"
14+
secretName: pythondiscord.com-tls
15+
rules:
16+
- host: monsteras.pythondiscord.com
17+
http:
18+
paths:
19+
- path: /
20+
pathType: Prefix
21+
backend:
22+
service:
23+
name: monsteras
24+
port:
25+
number: 80
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: monsteras
5+
namespace: codejam-winners
6+
spec:
7+
selector:
8+
app: monsteras
9+
ports:
10+
- protocol: TCP
11+
port: 80
12+
targetPort: 8080

0 commit comments

Comments
 (0)