aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/web/public-stats/ingress.yaml
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-04-15 12:07:54 +0100
committerGravatar Joe Banks <[email protected]>2024-04-15 12:07:54 +0100
commit38a438e2544f56253c2e8bb8a322c283631c25c2 (patch)
treeace05c2e32a57ded1079b91c2507166a2ad141ec /kubernetes/namespaces/web/public-stats/ingress.yaml
parentMove site namespace (diff)
Move public stats
Diffstat (limited to 'kubernetes/namespaces/web/public-stats/ingress.yaml')
-rw-r--r--kubernetes/namespaces/web/public-stats/ingress.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/kubernetes/namespaces/web/public-stats/ingress.yaml b/kubernetes/namespaces/web/public-stats/ingress.yaml
new file mode 100644
index 0000000..83ba9e6
--- /dev/null
+++ b/kubernetes/namespaces/web/public-stats/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://www.youtube.com/watch?v=dQw4w9WgXcQ"
+ name: public-stats
+ namespace: web
+spec:
+ tls:
+ - hosts:
+ - "*.pythondiscord.com"
+ secretName: pythondiscord.com-tls
+ rules:
+ - host: stats.pythondiscord.com
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: public-stats
+ port:
+ number: 8000