path Types (PathType:) in K8s Ingress
(Redirected from PathType)
Jump to navigation
Jump to search
pathType: ImplementationSpecific pathType: Prefix pathType: Exact
strict-validate-path-type
enabled by default in https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.12.0
paths: - path: /(.*) pathType: ImplementationSpecific
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: test-ingress annotations: nginx.ingress.kubernetes.io/use-regex: "true" spec: ingressClassName: nginx rules: - host: test.com http: paths: - path: /foo/.* pathType: ImplementationSpecific backend: service: name: test port: number: 80
Errors[edit]
Admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: ingress contains invalid paths: path /?(.*) cannot be used with pathType Prefix
Solution: disable in nginx strict-validate-path-type
or change pathType: ImplementationSpecific
in every ingress.
Related[edit]
See also[edit]
pathType: ImplementationSpecific, Prefix, Exact
,strict-validate-path-type
, Ingress Path Matchingingress:, pathType:
- NGINX Ingress Controller: ConfigMap ingress-nginx,
UnAvailableLoadBalancer, UpdatedLoadBalancer, ingress-nginx-controller, ingress-nginx-controller-controller-admission, nginx.org/ingress-controller, k8s.io/ingress-nginx, PathType
, values.yaml
Advertising: