apps/snips/resources/routes.yaml

48 lines
859 B
YAML
Raw Normal View History

2024-03-06 21:11:07 +00:00
---
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