mirror of
https://github.com/hanzoai/ingress.git
synced 2026-10-20 15:07:40 +00:00
- 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
116 lines
1.9 KiB
YAML
116 lines
1.9 KiB
YAML
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: GatewayClass
|
|
metadata:
|
|
name: my-gateway-class
|
|
spec:
|
|
controllerName: hanzo.ai/gateway-controller
|
|
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: Gateway
|
|
metadata:
|
|
name: my-gateway
|
|
namespace: default
|
|
spec:
|
|
gatewayClassName: my-gateway-class
|
|
listeners: # Use GatewayClass defaults for listener definition.
|
|
- name: http
|
|
protocol: HTTP
|
|
port: 80
|
|
|
|
- name: https
|
|
protocol: HTTPS
|
|
port: 443
|
|
tls:
|
|
certificateRefs:
|
|
- kind: Secret
|
|
name: mysecret
|
|
|
|
- name: tcp
|
|
protocol: TCP
|
|
port: 9000
|
|
allowedRoutes:
|
|
kinds:
|
|
- kind: TCPRoute
|
|
|
|
- name: tls
|
|
protocol: TLS
|
|
port: 9443
|
|
hostname: example.com
|
|
tls:
|
|
certificateRefs:
|
|
- kind: Secret
|
|
name: mysecret
|
|
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: http-app
|
|
namespace: default
|
|
|
|
spec:
|
|
parentRefs:
|
|
- name: my-gateway
|
|
|
|
hostnames:
|
|
- foo.com
|
|
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: Exact
|
|
value: /bar
|
|
|
|
backendRefs:
|
|
- name: whoami
|
|
port: 80
|
|
weight: 1
|
|
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /foo
|
|
|
|
backendRefs:
|
|
- group: hanzo.ai
|
|
kind: IngressService
|
|
name: myservice@file
|
|
weight: 1
|
|
port: 80
|
|
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1alpha2
|
|
kind: TCPRoute
|
|
metadata:
|
|
name: tcp-app
|
|
namespace: default
|
|
|
|
spec:
|
|
parentRefs:
|
|
- name: my-gateway
|
|
|
|
rules:
|
|
- backendRefs:
|
|
- name: whoamitcp
|
|
port: 9000
|
|
weight: 1
|
|
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1alpha2
|
|
kind: TLSRoute
|
|
metadata:
|
|
name: tls-app
|
|
namespace: default
|
|
|
|
spec:
|
|
parentRefs:
|
|
- name: my-gateway
|
|
sectionName: tls
|
|
|
|
rules:
|
|
- backendRefs:
|
|
- name: whoamitcp
|
|
port: 9000
|
|
weight: 1
|