Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Virtual Node flagger-appmesh-gateway-appmesh-gateway not adding new backends #16

Open
jgordor opened this issue Mar 18, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@jgordor
Copy link

jgordor commented Mar 18, 2020

Hi,

I have and exposed service and I can access it via the NLB -> Gateway:

apiVersion: appmesh.k8s.aws/v1beta1
kind: VirtualService
metadata:
  name: s1.apps.svc.cluster.local
  namespace: apps
  annotations:
    gateway.appmesh.k8s.aws/expose: "true"
    gateway.appmesh.k8s.aws/retries: "5"
    gateway.appmesh.k8s.aws/timeout: "25s"
    gateway.appmesh.k8s.aws/domain: "s1.com"

I see in the virtual node flagger-appmesh-gateway-appmesh-gateway that the backend s1.apps.svc.cluster.localis added .

But, when I added a second exposed service:

apiVersion: appmesh.k8s.aws/v1beta1
kind: VirtualService
metadata:
  name: s2.apps.svc.cluster.local
  namespace: apps
  annotations:
    gateway.appmesh.k8s.aws/expose: "true"
    gateway.appmesh.k8s.aws/retries: "5"
    gateway.appmesh.k8s.aws/timeout: "25s"
    gateway.appmesh.k8s.aws/domain: "s2.com"

This second exposed virtual service is not being added to the gateway virtual node and a 404 response is being returned.

Checking the logs I only see I0317 16:43:43.011647 1 virtualnode.go:114] virtual node flagger-appmesh-gateway updated with 1 backends How can I debug what's going on?

Thanks

@stefanprodan
Copy link
Owner

Is this a transient error or the backend is never added?

@stefanprodan stefanprodan added the bug Something isn't working label Mar 18, 2020
@jgordor
Copy link
Author

jgordor commented Mar 18, 2020

The backend is never added

@stefanprodan
Copy link
Owner

I can't replicate this in CI. Do you see anything else in the logs? If you restart the gateway does it add it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants