English 中文(简体)
Kong Error no Route matched with those values
原标题:

currently I m trying to add aws-lambda plugin to existing EKS which uses Kong helmchart as an API gateway.

I already made a CRD for Kong plugin

apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
  name: aws-lambda-example
plugin: aws-lambda
config:
  aws_key: xxx
  aws_secret: xxxx
  aws_region: xxxx
  function_name: test-lambda
  forward_request_body: true
  forward_request_headers: true
  forward_request_uri: true

The project already had an ingress with the path of /*

annotations:
  alb.ingress.kubernetes.io/conditions.rule-path2: |
    [{"field":"path-pattern","pathPatternConfig":{"values":["/*"]}}]
spec:   
    rules:
    - host: xxxxx
      http:
        paths:
          - path: /*
            pathType: ImplementationSpecific
            backend:
              service:
                name: kong-gw-ingress-gateway-proxy
                port:
                  number: 443

Because the lambda function only has some routes, I try to create another ingress with the following spec

annotations:
  konghq.com/plugins: aws-lambda-example <--- apply the Kong plugin
  alb.ingress.kubernetes.io/conditions.rule-path2: |
  [{"field":"path-pattern","pathPatternConfig":{"values":["/lambda"]}}]
spec:
  rules:
    - host: xxxxx
      http:
        paths:
          - path: /lambda
            pathType: ImplementationSpecific
            backend:
              service:
                name: kong-gw-ingress-gateway-proxy
                port:
                  number: 443

I applied to the the cluster and got no error event

but when I try to call mydomain/lambda I get the following error.

Kong Error no Route matched with those values.

the other routes(non aws-lambda routes) are still working file why doesn t it receive the /lambda path and pass to the lambda function?

问题回答

暂无回答




相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签