apisix-ingress-controller icon indicating copy to clipboard operation
apisix-ingress-controller copied to clipboard

ApisixRoute does not write to etcd and is not shown on dashboard

Open tutuV opened this issue 3 years ago • 5 comments

env: k8s 1.21 apisix-helm-chart 0.7.2

install cmd: helm install apisix apisix -f apisix/values.yaml --set apisix.replicaCount=1 --set gateway.type=LoadBalancer --set admin.allow.ipList="{0.0.0.0/0}" --set etcd.enabled=true --set etcd.persistence.enabled=false --set ingress-controller.enabled=true --set ingress-controller.config.apisix.serviceNamespace=apisix --set ingress-controller.config.kubernetes.apisixRouteVersion="apisix.apache.org/v2beta2" --set dashboard.enabled=true --namespace apisix

ApisixRoute was created successfully, but neither ETCD nor Dashboard, and ingress-Controller-pod reported no error. Sometimes, restarting ingress-Controller-pod fixes this problem

tutuV avatar Nov 11 '21 04:11 tutuV

Please provide the steps to reproduce problems.

tokers avatar Nov 11 '21 10:11 tokers

@tokers kubectl create ns apisix

helm install apisix apisix
-f apisix/values.yaml
--set apisix.replicaCount=1
--set gateway.type=LoadBalancer
--set admin.allow.ipList="{0.0.0.0/0}"
--set etcd.enabled=true
--set etcd.persistence.enabled=false
--set ingress-controller.enabled=true
--set ingress-controller.config.apisix.serviceNamespace=apisix
--set ingress-controller.config.kubernetes.apisixRouteVersion="apisix.apache.org/v2beta2"
--set dashboard.enabled=true
--namespace apisix

vim echo.yaml #The missing item is echo Server apiVersion: apisix.apache.org/v2beta2 #for apisix v2.10 kind: ApisixRoute metadata: name: echo-apisixroute namespace: echo spec: http:

  • name: echo-apisixroute match: paths:
    • "/echo" backends:
    • serviceName: echo servicePort: 80 plugins:
    • name: cors enable: true

kubectl apply -f echo.yaml


That's all I did

On Github, yamL has some issues with the display, but the content is fine. Previously running on Apisix-Helm-chart: V0.3.6 all is fine.

tutuV avatar Nov 12 '21 09:11 tutuV

@tao12345666333 @gxthrj Please take a look when you have time.

tokers avatar Nov 14 '21 05:11 tokers

It should have some error logs in ingress-controller, Please show us.

gxthrj avatar Nov 24 '21 06:11 gxthrj

This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Jul 30 '22 01:07 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Aug 29 '22 01:08 github-actions[bot]