i have some problem with wildcard path when i convert apiVersion: networking.k8s.io/v1 because of version update k8s v1.22
The wildcard path in the back doesn't matter i have a problem changing the wildcard path between like this abcd/*/bcde this is my example code
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: my-api-sample
labels:
app.kubernetes.io/name: my-api-sample
annotations:
alb.ingress.kubernetes.io/success-codes: "200-204"
spec:
rules:
- host: my.api.example.com
http:
paths:
- path: /transactions/example/status
backend:
serviceName: my-example
servicePort: 80
- path: /orders/*/example
backend:
serviceName: my-example
servicePort: 80
second path /orders/*/example k8s v1.22 i tried to use regex for that
but it doesn't support wildcard for it prefix, exact path shouldn't contain wildcards: /orders/.*/example how can i convert to that wildcard path?
You can not use regex on
Path
for AWS ALB. (nginx-ingress support it). But you can do the same behavior with ALB Listener conditions. (Path condition).How to use Path condition on ingress? Visit here