k/website: add caution.co
This commit is contained in:
parent
2627095c97
commit
50fc310110
|
@ -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
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue