You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we create tunnel group backends for highly available tunnels to services within a k8s cluster. Ngrok also supports these other backends:
http response backend: static http response value
Failover backend: takes a list of other backends
weighted backends: takes a list of other backends
If we treat our tunnel groups as a Backend, and create crd's for these other backends that can reference each other and tunnel groups, we could use them with the ingress spec
Use Case
apiVersion: ingress.k8s.ngrok.com/v1alpha1kind: HttpResponseBackendmetadata:
name: http-response-backend-404spec:
body: "404 Not Found"status: 404
---
apiVersion: ingress.k8s.ngrok.com/v1alpha1kind: FailoverBackendmetadata:
name: failover-backendspec:
backends:
- resource:
apiGroup: ingress.k8s.ngrok.com/v1alpha1kind: HttpResponseBackendname: http-response-backend-404
- service:
name: test-serviceport:
number: 80
---
apiVersion: networking.k8s.io/v1kind: Ingressmetadata:
name: ingress-resource-backendspec:
defaultBackend:
resource:
apiGroup: ingress.k8s.ngrok.com/v1alpha1kind: HttpResponseBackendname: http-response-backend-404rules:
- host: foo.bar.comhttp:
paths:
- path: /foopathType: Prefixbackend:
service: # Makes a tunnel group backend for this servicename: test-serviceport:
number: 80resource: # References other backend typesapiGroup: ingress.k8s.ngrok.com/v1alpha1kind: FailoverBackendname: failover-backend
Related issues
No response
The text was updated successfully, but these errors were encountered:
This seems valid to create CRDs for different backends in the future. We may just support it for gateway or backport it to ingress when we go do this work.
Description
Currently, we create tunnel group backends for highly available tunnels to services within a k8s cluster. Ngrok also supports these other backends:
If we treat our tunnel groups as a Backend, and create crd's for these other backends that can reference each other and tunnel groups, we could use them with the ingress spec
Use Case
Related issues
No response
The text was updated successfully, but these errors were encountered: