Skip to content

Commit cfa1b37

Browse files
committed
fix(retrom): should add an ingress for the backend maybe?
1 parent 16cf721 commit cfa1b37

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

clusters/apps/env/production/games/retrom/app/ingressroute.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,27 @@ spec:
3333
- name: google-auth-oauth2-proxy
3434
namespace: auth-system
3535
port: 80
36+
- kind: Rule
37+
match: "Host(`${INGRESSROUTE_SUBDOMAIN}-backend.${FAMILY_DOMAIN}`)"
38+
middlewares:
39+
- name: oauth-auth
40+
namespace: auth-system
41+
- name: oauth-errors
42+
namespace: auth-system
43+
priority: 10
44+
services:
45+
- name: ${APP}
46+
port: 5101
47+
- kind: Rule
48+
match: "Host(`${INGRESSROUTE_SUBDOMAIN}-backend.${FAMILY_DOMAIN}`) && PathPrefix(`/oauth2/`)"
49+
priority: 15
50+
middlewares:
51+
- name: oauth-headers
52+
namespace: auth-system
53+
services:
54+
- name: google-auth-oauth2-proxy
55+
namespace: auth-system
56+
port: 80
3657
tls:
3758
secretName: heyjohn-wildcard-certificate
3859
domains:
@@ -51,6 +72,11 @@ spec:
5172
recordType: CNAME
5273
targets:
5374
- ${DYNAMIC_DOMAIN}
75+
- dnsName: ${INGRESSROUTE_SUBDOMAIN}-backend.${FAMILY_DOMAIN}
76+
recordTTL: 300
77+
recordType: CNAME
78+
targets:
79+
- ${DYNAMIC_DOMAIN}
5480
---
5581
apiVersion: externaldns.k8s.io/v1alpha1
5682
kind: DNSEndpoint
@@ -65,3 +91,8 @@ spec:
6591
recordType: A
6692
targets:
6793
- ${CLUSTER_LB_INGRESS_EXTERNAL}
94+
- dnsName: ${INGRESSROUTE_SUBDOMAIN}-backend.${FAMILY_DOMAIN}
95+
recordTTL: 300
96+
recordType: A
97+
targets:
98+
- ${CLUSTER_LB_INGRESS_EXTERNAL}

0 commit comments

Comments
 (0)