51 lines
No EOL
926 B
YAML
51 lines
No EOL
926 B
YAML
---
|
|
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 |