Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zrok Ingress Controller for k8s #2425

Open
qrkourier opened this issue Sep 19, 2024 · 2 comments
Open

zrok Ingress Controller for k8s #2425

qrkourier opened this issue Sep 19, 2024 · 2 comments

Comments

@qrkourier
Copy link
Member

The zrok Ingress Controller watches for Ingress and Gateway resources and provisions the appropriate resources in Kube API and a reserved zrok share.

Defines an IngressClass and GatewayClass named zrok that may be instantiated by the zrok Ingress Controller.

example Ingress resource using the zrok class represents what the k8s user must provide to trigger the zrok Ingress Controller to proxy to a ClusterIP service

backend mode "proxy" is implied

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-frontdoor-svc-ingress
  annotations:
    zrok.ingress.kubernetes.io/unique-name: myfrontdoorsvc
spec:
  ingressClassName: zrok
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: my-frontdoor-svc
            port:
              number: 80

variation on the above, this demonstrates using the "web" backend mode to serve static assets instead of proxy to a service

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-frontdoor-assets-ingress
  annotations:
    zrok.ingress.kubernetes.io/unique-name: myfrontdoorassets
    zrok.ingress.kubernetes.io/backend-mode: web
spec:
  ingressClassName: zrok
  defaultBackend:
    resource:
      apiGroup: k8s.example.com
      kind: StorageBucket
      name: static-assets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant