feat: setup Gateway API
This commit is contained in:
parent
ba06d96a2c
commit
80721ce1da
75 changed files with 20990 additions and 1271 deletions
coder/resources
51
coder/resources/http_routes.yaml
Normal file
51
coder/resources/http_routes.yaml
Normal file
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: coder-http
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: contour
|
||||
sectionName: http
|
||||
namespace: projectcontour
|
||||
hostnames:
|
||||
- ide.icb4dc0.de
|
||||
- "*.ide.icb4dc0.de"
|
||||
rules:
|
||||
- filters:
|
||||
- type: RequestRedirect
|
||||
requestRedirect:
|
||||
scheme: https
|
||||
statusCode: 301
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: coder-https
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: contour
|
||||
sectionName: https
|
||||
namespace: projectcontour
|
||||
hostnames:
|
||||
- ide.icb4dc0.de
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: coder
|
||||
port: 80
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: coder-https-wildcard
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: contour
|
||||
sectionName: coder-port-forwards
|
||||
namespace: projectcontour
|
||||
hostnames:
|
||||
- "*.ide.icb4dc0.de"
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: coder
|
||||
port: 80
|
Loading…
Add table
Add a link
Reference in a new issue