lujf0910 opened a new pull request, #7898:
URL: https://github.com/apache/apisix/pull/7898

   ### Description
   1. when u want to use K8S service discovery in apisix, whether apisix(data 
plane) deployed in k8s or outside k8s, U should to complete 
file(config-default.yml or config.yml) configuration. How to get 'token'?
   
   step1: kubectl create serviceaccount apisix-sa
   step2: kubectl create clusterrole endpoints-list-watch --verb=get,list,watch 
--resource=endpoints
   step3: kubectl create clusterrolebinding apisix-endpoints-list-watch 
--clusterrole=endpoints-list-watch --serviceaccount=default:apisix-sa
   step4: kubectl get secrets | grep apisix-sa
   step5: kubectl get secret apisix-sa-token-b8q26 -o jsonpath={.data.token} | 
base64 -d
   
   3. how to config upstream with dashbord?
   service_name should match pattern: [namespace]/[name]:[portName] or  
[namespace]/[name]:[port], but no targetPort. I suggest use portName.
   
   <!--
   
   Note
   
   1. Mark the PR as draft until it's ready to be reviewed.
   5. Always add/update tests for any changes unless you have a good reason.
   6. Always update the documentation to reflect the changes made in the PR.
   7. Make a new commit to resolve conversations instead of `push -f`.
   8. To resolve merge conflicts, merge master instead of rebasing.
   9. Use "request review" to notify the reviewer after making changes.
   10. Only a reviewer can mark a conversation as resolved.
   
   -->
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to