---
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