File tree Expand file tree Collapse file tree
deploy/manifests/balancer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ kind: ListenerSet
33metadata :
44 name : balancer-listeners
55 annotations :
6- cert-manager.io/cluster-issuer : letsencrypt-prod
6+ cert-manager.io/cluster-issuer : letsencrypt-prod-gateway
77 hostname : HOSTNAME_PLACEHOLDER
88spec :
99 parentRef :
Original file line number Diff line number Diff line change 1-
21apiVersion : gateway.networking.k8s.io/v1
32kind : HTTPRoute
43metadata :
2120 backendRefs :
2221 - name : balancer
2322 port : 80
23+ ---
24+ apiVersion : gateway.networking.k8s.io/v1
25+ kind : HTTPRoute
26+ metadata :
27+ name : balancer-http-redirect
28+ annotations :
29+ hostname : HOSTNAME_PLACEHOLDER
30+ spec :
31+ parentRefs :
32+ - name : balancer-listeners
33+ kind : ListenerSet
34+ group : gateway.networking.k8s.io
35+ sectionName : http
36+ hostnames :
37+ - HOSTNAME_PLACEHOLDER
38+ rules :
39+ - filters :
40+ - type : RequestRedirect
41+ requestRedirect :
42+ scheme : https
43+ statusCode : 301
Original file line number Diff line number Diff line change @@ -22,3 +22,6 @@ configMapGenerator:
2222 - name : balancer-config
2323 envs :
2424 - balancer.env
25+
26+ generatorOptions :
27+ disableNameSuffixHash : true
Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ patches:
3838 - target :
3939 kind : HTTPRoute
4040 name : balancer
41+ patch : |
42+ - op: replace
43+ path: /spec/hostnames/0
44+ value: balancerproject.org
45+ - target :
46+ kind : HTTPRoute
47+ name : balancer-http-redirect
4148 patch : |
4249 - op: replace
4350 path: /spec/hostnames/0
Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ patches:
4343 - op: replace
4444 path: /spec/hostnames/0
4545 value: sandbox.balancerproject.org
46+ - target :
47+ kind : HTTPRoute
48+ name : balancer-http-redirect
49+ patch : |
50+ - op: replace
51+ path: /spec/hostnames/0
52+ value: sandbox.balancerproject.org
4653 - target :
4754 kind : Deployment
4855 name : balancer
You can’t perform that action at this time.
0 commit comments