k/website: add caution.co

This commit is contained in:
Ryan Heywood 2025-06-09 21:54:41 -04:00
parent 2627095c97
commit 50fc310110
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,65 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: website-caution
spec:
replicas: 2
selector:
matchLabels:
app: website-caution
template:
metadata:
labels:
app: website-caution
spec:
containers:
- name: website
image: git.distrust.co/caution/website
imagePullPolicy: Always
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: website-caution
spec:
ports:
- name: http
port: 80
targetPort: 80
selector:
app: website-caution
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: website-caution
annotations:
cert-manager.io/cluster-issuer: letsencrypt-caution
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
ingressClassName: nginx
rules:
- host: caution.co
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: website-caution
port:
number: 80
# NOTE: This makes use of distrust.co's web form
- path: /submit-email
pathType: Prefix
backend:
service:
name: web-form
port:
number: 80
tls:
- hosts:
- caution.co
secretName: website-caution-tls

View File

@ -7,6 +7,7 @@ resources:
- website.yaml - website.yaml
- docs.yaml - docs.yaml
- wellknown.yaml - wellknown.yaml
- caution.yaml
configMapGenerator: configMapGenerator:
- name: openpgp-keys - name: openpgp-keys
files: files: