diff --git a/kustomizations/website/caution.yaml b/kustomizations/website/caution.yaml new file mode 100644 index 0000000..51819a0 --- /dev/null +++ b/kustomizations/website/caution.yaml @@ -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 diff --git a/kustomizations/website/kustomization.yaml b/kustomizations/website/kustomization.yaml index 3d9c659..0fec714 100644 --- a/kustomizations/website/kustomization.yaml +++ b/kustomizations/website/kustomization.yaml @@ -7,6 +7,7 @@ resources: - website.yaml - docs.yaml - wellknown.yaml +- caution.yaml configMapGenerator: - name: openpgp-keys files: