Kong Operator supports a set of konghq.com/* annotations on HTTPRoute and GRPCRoute resources. Kong Operator propagates these annotations to the Kong Gateway Route that it generates for the resource.
For example:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: my-route
namespace: kong
annotations:
konghq.com/strip-path: "true"
konghq.com/request-buffering: "false"
konghq.com/https-redirect-status-code: "301"
spec:
parentRefs:
- name: kong
rules:
- matches:
- path:
type: PathPrefix
value: /api
backendRefs:
- name: my-service
port: 80Note: Annotations that configure the upstream connection, such as timeouts and retries, are set on the
Serviceinstead. See the Service annotations reference.