stack/kustomizations/website/caution.yaml

66 lines
1.3 KiB
YAML

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