Files
zeekay 4e83ffa927 refactor: migrate CRD API groups to hanzo.ai and labels to ingress.*
- CRD API group: traefik.io -> hanzo.ai (GroupName, apiVersion, RBAC)
- Docker/provider label prefix: traefik.* -> ingress.* (all providers)
- CRD kind: TraefikService -> IngressService
- Directory renames: traefikio/ -> hanzoai/ (types, generated code, listers, informers, clientset)
- Config root name: traefik -> ingress (KV stores, file paths, env prefix)
- Metrics prefix: traefik_ -> ingress_
- Kubernetes annotations: traefik.ingress.kubernetes.io/ -> ingress.kubernetes.io/
- Gateway annotations: traefik.io/ -> hanzo.ai/
- Internal provider package: provider/traefik -> provider/builtins
- Type renames: TraefikLog -> IngressLog, TraefikCmdConfiguration -> IngressCmdConfiguration
- Generated client methods: TraefikV1alpha1() -> HanzoV1alpha1(), Traefik() -> Hanzo()
- Sample configs: traefik.sample.{toml,yml} -> ingress.sample.{toml,yml}
- Config paths: /etc/traefik/ -> /etc/ingress/, ~/.config/traefik -> ~/.config/ingress
- Default cert CN: TRAEFIK DEFAULT CERT -> INGRESS DEFAULT CERT
2026-02-26 10:33:54 -08:00

104 lines
4.2 KiB
YAML

services:
server0:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-server0.entryPoints: web
ingress.http.routers.rt-server0.rule: Path(`/test`)
ingress.http.services.service1.loadbalancer.server.port: 80
server1:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-server1.entryPoints: web
ingress.http.routers.rt-server1.rule: Host(`frontend1.docker.local`)
ingress.http.routers.rt-server1.service: service1
ingress.http.services.service1.loadbalancer.server.port: 80
server2:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-server2.entryPoints: web
ingress.http.routers.rt-server2.rule: Host(`frontend2.docker.local`)
ingress.http.services.service2.loadbalancer.server.port: 80
server3:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-server3.entryPoints: web
ingress.http.routers.rt-server3.rule: Host(`frontend2.docker.local`)
ingress.http.services.service2.loadbalancer.server.port: 80
authFrontend:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-authFrontend.entryPoints: httpFrontendAuth
ingress.http.routers.rt-authFrontend.rule: Host(`frontend.auth.docker.local`)
ingress.http.routers.rt-authFrontend.middlewares: basicauth
ingress.http.middlewares.basicauth.basicauth.users: "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/"
ingress.http.services.service3.loadbalancer.server.port: 80
digestAuthMiddleware:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-digestAuthMiddleware.entryPoints: digestAuth
ingress.http.routers.rt-digestAuthMiddleware.rule: Host(`entrypoint.digest.auth.docker.local`)
ingress.http.routers.rt-digestAuthMiddleware.middlewares: digestauth
ingress.http.middlewares.digestauth.digestauth.users: test:traefik:a2688e031edb4be6a3797f3882655c05, test2:traefik:518845800f9e2bfb1f1f740ec24f074e
ingress.http.services.service3.loadbalancer.server.port: 80
frontendRedirect:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-frontendRedirect.entryPoints: frontendRedirect
ingress.http.routers.rt-frontendRedirect.rule: Path(`/test`)
ingress.http.routers.rt-frontendRedirect.middlewares: redirecthttp
ingress.http.middlewares.redirecthttp.redirectScheme.scheme: http
ingress.http.middlewares.redirecthttp.redirectScheme.port: 8000
ingress.http.services.service3.loadbalancer.server.port: 80
rateLimit:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-rateLimit.entryPoints: httpRateLimit
ingress.http.routers.rt-rateLimit.rule: Host(`ratelimit.docker.local`)
ingress.http.routers.rt-rateLimit.middlewares: rate
ingress.http.middlewares.rate.ratelimit.average: 1
ingress.http.middlewares.rate.ratelimit.burst: 2
ingress.http.services.service3.loadbalancer.server.port: 80
frontendAllowlist:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-frontendAllowlist.entryPoints: web
ingress.http.routers.rt-frontendAllowlist.rule: Host(`frontend.allowlist.docker.local`)
ingress.http.routers.rt-frontendAllowlist.middlewares: wl
ingress.http.middlewares.wl.ipallowlist.sourcerange: 8.8.8.8/32
ingress.http.services.service3.loadbalancer.server.port: 80
preflightCORS:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.rt-preflightCORS.entryPoints: preflight
ingress.http.routers.rt-preflightCORS.rule: Host(`preflight.docker.local`)
ingress.http.routers.rt-preflightCORS.middlewares: preflightCORS
ingress.http.middlewares.preflightCORS.headers.accessControlAllowMethods: OPTIONS, GET
ingress.http.services.preflightCORS.loadbalancer.server.port: 80
ping:
image: traefik/whoami
labels:
ingress.enable: true
ingress.http.routers.ping.entryPoints: ping
ingress.http.routers.ping.rule: PathPrefix(`/ping`)
ingress.http.routers.ping.service: ping@internal