k8sgateway / k8sgateway

The Cloud-Native API Gateway and AI Gateway
https://k8sgateway.io/
Apache License 2.0
4.12k stars 449 forks source link

Envoy proxy dump dynamic_route_configs not updating as expected? #2314

Closed arianaw66 closed 5 months ago

arianaw66 commented 4 years ago

glooctl proxy dump seems to often give out of date info in the dynamic_route_configs section, at least when there are route tables involved.

arianaw66 commented 4 years ago

To reproduce:

setup: kubectl create namespace gloo-system helm install gloo gloo/gloo --version 1.3.2 --namespace gloo-system glooctl version —> client 1.3.1, server 1.3.2 glooctl proxy dump > proxyDump.yaml vim proxyDump.yaml —> no dynamic_route_configs section

Add a simple vs using one route table (first problem): kubectl apply -f 1rt.yaml k get proxy -n gloo-system gateway-proxy -oyaml —> looks good, contains "delegationsmall" vs glooctl proxy dump > proxyDump.yaml vim proxyDump.yaml —> no dynamic_route_configs section, search for "delegationsmall" finds nothing

Delete the rt (next problem): k delete rt -n gloo-system --all glooctl proxy dump > proxyDump.yaml vim proxyDump.yaml —> has dynamic_route_configs section with "delegationsmall" vs, even though it's been deleted. Also record the last_updated time for the dynamic_route_configs section.

Add the rt back (next problem): kubectl apply -f 1rt.yaml —> the route table is created glooctl proxy dump > proxyDump.yaml vim proxyDump.yaml —> dynamic_route_configs section has not updated (see last_updated time)

Delete the rt and vs (next problem): k delete rt -n gloo-system --all k delete vs -n gloo-system --all glooctl proxy dump > proxyDump.yaml vim proxyDump.yaml —> dynamic_route_configs section has still not updated (see last_updated time)

arianaw66 commented 4 years ago

1rt.yaml for reproducing as described above:

kind: VirtualService
metadata:
  name: delegationsmall
  namespace: gloo-system
spec:
  virtualHost:
    domains:
    - bar
    routes:
    - delegateAction:
        selector:
          namespaces:
          - gloo-system
          labels:
            app: oneRT
      matchers:
      - prefix: /
#      name: routeTwo
---
apiVersion: gateway.solo.io/v1
kind: RouteTable
metadata:
  name: onert
  namespace: gloo-system
  labels:
    app: oneRT
spec:
  routes:
  - matchers:
    - prefix: /bar/hi
#    name: oneRTRoute
    directResponseAction:
      status: 200
github-actions[bot] commented 11 months ago

This issue has been marked as stale because of no activity in the last 180 days. It will be closed in the next 180 days unless it is tagged "no stalebot" or other activity occurs.

github-actions[bot] commented 5 months ago

This issue has been closed due to no activity in the last 12 months.