aws-alb-ingress-controller - query string rule

221 views
Skip to first unread message

Amit De

unread,
May 17, 2020, 1:37:06 PM5/17/20
to kubernetes-sig-aws
Hey,
I have a kubernetes cluster running on EKS and I am using the ALB AWS Ingress Controller and Im trying to create a query string condition pointing to a service inside the cluster.
the Ingress Annotations page in the documentation says "ServiceName/ServicePort can be used in forward action(advanced schema only)." 

I cant seem to find what is the 
advanced schema. 
does anyone know how to make this kind of thing work ?

this is what Im adding in the annotations :
alb.ingress.kubernetes.io/actions.ccproxy: '{"Type":"forward","ForwardConfig":{"ServiceName":"kccproxy","ServicePort":"80","Weight":100}}'
alb.ingress.kubernetes.io/conditions.ccproxy: '[{"Field":"query-string","QueryStringConfig":{"Values":[{"Key":"test","Value":"test"}]}}]'

and this the error I get in the alb ingress controller pod:

1 controller.go:217] kubebuilder/controller "msg"="Reconciler error" "error"="failed to reconcile l
isteners due to failed to reconcile rules due to failed modifying rule 12 on arn:aws:elasticloadbalancing:us-west-2:xxxxxxxxxxx:listener/app/xxxxxxxxxxxx/xxxxxxx due to ValidationError: '' is not a valid target
group ARN\n\tstatus code: 400, request id: xxxxxxxxxxxxxxx"  "controller"="alb-ingress-controller" "reques
t"={"Namespace":"default","Name":"int-alb"}


Thanks :) 

Arindam Chanda

unread,
Jul 16, 2020, 9:31:11 AM7/16/20
to kubernetes-sig-aws
Never came across this error but how's your target-type defined? By default it is set to "instance"

Take a look at this and try changing it to "ip" (which is basically routing the traffic to pod ip) and see if that helps
Reply all
Reply to author
Forward
0 new messages