apps/coder/resources/http_routes.yaml

51 lines
926 B
YAML
Raw Normal View History

2024-02-21 07:12:13 +00:00
---
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