apps/snips/resources/routes.yaml
Peter Kurfer 3fdbfe8d7e
All checks were successful
Renovate / renovate (push) Successful in 31s
feat(snips): initial setup
2024-03-06 22:11:07 +01:00

48 lines
No EOL
859 B
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: snips-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- snips.icb4dc0.de
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: snips-https
spec:
parentRefs:
- name: contour
sectionName: https
namespace: projectcontour
hostnames:
- snips.icb4dc0.de
rules:
- backendRefs:
- name: snips
port: 8080
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TCPRoute
metadata:
name: snips-ssh
spec:
parentRefs:
- name: contour
sectionName: snips-ssh
namespace: projectcontour
rules:
- backendRefs:
- name: snips
port: 2222