Fix: Add correct annotation to ingress
This commit is contained in:
@@ -5,9 +5,10 @@ metadata:
|
|||||||
namespace: reactbin
|
namespace: reactbin
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
kubernetes.io/tls-acme: "true"
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx-public
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- reactbin.juggalol.com
|
- reactbin.juggalol.com
|
||||||
@@ -16,7 +17,6 @@ spec:
|
|||||||
- host: reactbin.juggalol.com
|
- host: reactbin.juggalol.com
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
# /api/ must appear before / — nginx evaluates paths in declaration order
|
|
||||||
- path: /api/
|
- path: /api/
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
@@ -30,4 +30,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: ui
|
name: ui
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 8080
|
||||||
Reference in New Issue
Block a user