You are right about the documentation. I misread, version earlier thatn 1.21.3-gke.1600, the only supported value for pathType is ImplementationSpecific, for 1.21.3-gke.1600 or later, Prefix and Exact are supported.
I was wondering how I can resolve this.
This is my ingress
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cb-ingress
annotations:
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/affinity-mode: persistent
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: cb-example
port:
number: 8091
When I described the ingress, this is what I got:
▶ kubectl describe ing cb-ingress
...
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Sync 2m9s (x125 over 3d4h) loadbalancer-controller Scheduled for sync
Warning Translate 47s (x37 over 3d3h) loadbalancer-controller Translation failed: invalid ingress spec: only "ImplementationSpecific" path type is supported