bullish/k8s/ingress/ingress-https.yaml
Ameya Shenoy b2f76391db
feat: working prod deploy with duplicate code
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
2021-02-12 03:26:27 +05:30

34 lines
760 B
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: production-https-ingress
namespace: production
annotations:
ingress.kubernetes.io/ssl-redirect: "true"
acme.cert-manager.io/http01-ingress-class: traefik
cert-manager.io/issuer: letsencrypt-production
spec:
rules:
- host: bullish.codingcoffee.me
http:
paths:
- backend:
serviceName: bullish-frontend
servicePort: 80
- host: api.bullish.codingcoffee.me
http:
paths:
- backend:
serviceName: bullish-backend
servicePort: 8000
tls:
- hosts:
- bullish.codingcoffee.me
- api.bullish.codingcoffee.me
secretName: production-tls-cert
...