ziyou434 opened a new issue #809: URL: https://github.com/apache/apisix-dashboard/issues/809
- [X] Other ___ ### Question My process of deploying dashboard on kubenetes - 2020/11/16 ___ Because there is no official image right now, so I used iiqi‘s image [https://github.com/iiQi/apisix-dashboard-docker](url) you can find “iiqi/apisix-dashboard“ and "iiqi/apisix-manager" I use deployment.yaml and service.yaml deployed these images on kubernetes. First I set two new configmap for images /etc/nginx/conf.d/backend.conf ``` upstream backend { server 127.0.0.1:8080; # put your manager-api service's cluster IP } ``` /go/manager-api/conf/conf.json ``` "etcd": { "endpoints":"127.0.0.1:2379" # put your etcd service's cluster IP ... ... "user": [ { "username": "admin", "password": "admin" }, { "username": "user", "password": "user" } }, ``` Then change your apisix's configmap /usr/local/apisix/conf/config-default.yaml ``` enable_admin: true # change to false ``` Finally, use your kubernetes ingress or apisix create a route example: ``` curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d ' { "uri": "/*", "host": "apisix-dashboard.alpha.tplinknbu.com", "upstream": {"nodes": {"apisix-dashboard.api-gateway.svc.cluster.local:8080": 1}, "type": "roundrobin"} }' ``` Go to apisix-dashboard.alpha.tplinknbu.com and login ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
