stack/kustomizations/website-beta/ingress.yaml

59 lines
1.3 KiB
YAML
Raw Normal View History

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: website
annotations:
cert-manager.io/cluster-issuer: letsencrypt
external-dns.alpha.kubernetes.io/hostname: beta.distrust.co
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
ingressClassName: nginx
rules:
- host: beta.distrust.co
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: website
port:
number: 80
- path: /submit-email
pathType: Prefix
backend:
service:
name: web-form
port:
number: 80
tls:
- hosts:
- beta.distrust.co
secretName: website-tls
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: docs
annotations:
cert-manager.io/cluster-issuer: letsencrypt
external-dns.alpha.kubernetes.io/hostname: docs.beta.distrust.co
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
ingressClassName: nginx
rules:
- host: docs.beta.distrust.co
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: docs
port:
number: 80
tls:
- hosts:
- docs.beta.distrust.co
secretName: docs-tls