You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/06/10 09:06:49 UTC

[GitHub] [apisix] liangyawang commented on pull request #7232: docs: update kubernetes document

liangyawang commented on PR #7232:
URL: https://github.com/apache/apisix/pull/7232#issuecomment-1152146120

   这个邮件很乱 您是让我修改哪部分的格式 咱们可否在slack交流
   
   > 2022年6月10日 下午4:43,feihan ***@***.***> 写道:
   > 
   > 
   > @hf400159 commented on this pull request.
   > 
   > Can you modify the format of this document? please refer: Chinese documentation style guide <https://apisix.apache.org/zh/docs/general/documentation-style-guide>.
   > 
   > In docs/zh/latest/discovery/kubernetes.md <https://github.com/apache/apisix/pull/7232#discussion_r894281950>:
   > 
   > > @@ -45,7 +45,7 @@ discovery:
   >        port: ${KUBERNETES_SERVICE_PORT}  #default ${KUBERNETES_SERVICE_PORT}
   >  
   >      client:
   > -      # serviceaccount token or token_file
   > +      # serviceaccount token or token_file token_file中应注意不要有换行符 请使用echo -n token > token_file 来生成此文件
   > ⬇️ Suggested change
   > -      # serviceaccount token or token_file token_file中应注意不要有换行符 请使用echo -n token > token_file 来生成此文件
   > +      # serviceaccount token or token_file token_file 中应注意不要有换行符 请使用 echo -n token > token_file 来生成此文件
   > In docs/zh/latest/discovery/kubernetes.md <https://github.com/apache/apisix/pull/7232#discussion_r894288435>:
   > 
   > > +Labels:       app=test-app
   > +Annotations:  endpoints.kubernetes.io/last-change-trigger-time: 2022-06-02T19:07:21+08:00
   > +Subsets:
   > +  Addresses:          10.223.216.201
   > +  NotReadyAddresses:  <none>
   > +  Ports:
   > +    Name     Port  Protocol
   > +    ----     ----  --------
   > +    8080tcp  8080  TCP                        #注意此处的端口名称 创建路由时 service_name字段中需要添加
   > +
   > +Events:  <none>
   > +```
   > +
   > +- 通过apisix api创建自动发现类型为kubernetes的路由 示例如下:
   > +```
   > +curl http://127.0.0.1:80/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f8sdfcx7ad84b625c8f1sdfagw32' -X PUT -i -d '
   > ⬇️ Suggested change
   > -curl http://127.0.0.1:80/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f8sdfcx7ad84b625c8f1sdfagw32' -X PUT -i -d '
   > +curl http://127.0.0.1:80/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   > In docs/zh/latest/discovery/kubernetes.md <https://github.com/apache/apisix/pull/7232#discussion_r894298038>:
   > 
   > > +Labels:       app=test-app
   > +Annotations:  endpoints.kubernetes.io/last-change-trigger-time: 2022-06-02T19:07:21+08:00
   > +Subsets:
   > +  Addresses:          10.223.216.201
   > +  NotReadyAddresses:  <none>
   > +  Ports:
   > +    Name     Port  Protocol
   > +    ----     ----  --------
   > +    8080tcp  8080  TCP                        #注意此处的端口名称 创建路由时 service_name字段中需要添加
   > +
   > +Events:  <none>
   > +```
   > +
   > +- 通过apisix api创建自动发现类型为kubernetes的路由 示例如下:
   > +```
   > +curl http://127.0.0.1:80/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f8sdfcx7ad84b625c8f1sdfagw32' -X PUT -i -d '
   > Please use the default Admin API Key.
   > 
   > —
   > Reply to this email directly, view it on GitHub <https://github.com/apache/apisix/pull/7232#pullrequestreview-1002426018>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AKKWAISWULB772JZOD3SWS3VOL5ZXANCNFSM5YMZYMCA>.
   > You are receiving this because you authored the thread.
   > 
   
   


-- 
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-unsubscribe@apisix.apache.org

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