aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/quackstack
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/namespaces/default/quackstack')
-rw-r--r--kubernetes/namespaces/default/quackstack/README.md7
-rw-r--r--kubernetes/namespaces/default/quackstack/deployment.yaml20
-rw-r--r--kubernetes/namespaces/default/quackstack/ingress.yaml24
-rw-r--r--kubernetes/namespaces/default/quackstack/service.yaml11
4 files changed, 62 insertions, 0 deletions
diff --git a/kubernetes/namespaces/default/quackstack/README.md b/kubernetes/namespaces/default/quackstack/README.md
new file mode 100644
index 0000000..c8b8a92
--- /dev/null
+++ b/kubernetes/namespaces/default/quackstack/README.md
@@ -0,0 +1,7 @@
+# QuackStack
+
+The deployment for the [QuackStack](https://github.com/python-discord/quackstack) project, hosted at https://quackstack.pythondiscord.com.
+
+This project doesn't need any configuration right now.
+
+To deploy this application run `kubectl apply -f .` from this directory. This will create a deployment, service and ingress.
diff --git a/kubernetes/namespaces/default/quackstack/deployment.yaml b/kubernetes/namespaces/default/quackstack/deployment.yaml
new file mode 100644
index 0000000..15747c2
--- /dev/null
+++ b/kubernetes/namespaces/default/quackstack/deployment.yaml
@@ -0,0 +1,20 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: quackstack
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: quackstack
+ template:
+ metadata:
+ labels:
+ app: quackstack
+ spec:
+ containers:
+ - name: quackstack
+ image: ghcr.io/python-discord/quackstack:main
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 80
diff --git a/kubernetes/namespaces/default/quackstack/ingress.yaml b/kubernetes/namespaces/default/quackstack/ingress.yaml
new file mode 100644
index 0000000..624e153
--- /dev/null
+++ b/kubernetes/namespaces/default/quackstack/ingress.yaml
@@ -0,0 +1,24 @@
+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://www.youtube.com/watch?v=dQw4w9WgXcQ"
+ name: quackstack
+spec:
+ tls:
+ - hosts:
+ - "*.pythondiscord.com"
+ secretName: pythondiscord.com-tls
+ rules:
+ - host: quackstack.pythondiscord.com
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: quackstack
+ port:
+ number: 80
diff --git a/kubernetes/namespaces/default/quackstack/service.yaml b/kubernetes/namespaces/default/quackstack/service.yaml
new file mode 100644
index 0000000..86926c5
--- /dev/null
+++ b/kubernetes/namespaces/default/quackstack/service.yaml
@@ -0,0 +1,11 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: quackstack
+spec:
+ selector:
+ app: quackstack
+ ports:
+ - protocol: TCP
+ port: 80
+ targetPort: 80