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/03/02 02:40:56 UTC

[GitHub] [apisix-helm-chart] anjia0532 opened a new issue #243: `ConfigMap` cannot refresh by `subPath`

anjia0532 opened a new issue #243:
URL: https://github.com/apache/apisix-helm-chart/issues/243


   en https://kubernetes.io/docs/concepts/storage/volumes/#configmap
   > A container using a ConfigMap as a [subPath](https://kubernetes.io/docs/concepts/storage/volumes/#using-subpath) volume mount will not receive ConfigMap updates.
   
   Maybe remove `subPath` is better ? We can use `apisix reload` without restart deployments/pods ?
   
   中文 https://kubernetes.io/zh/docs/concepts/storage/volumes/#configmap
   
   > 容器以 [subPath](https://kubernetes.io/zh/docs/concepts/storage/volumes/#using-subpath) 卷挂载方式使用 ConfigMap 时,将无法接收 ConfigMap 的更新。
   
   或许应该去掉 `subPath` ? 这样如果修改 ConfigMap 后可以通过 `apisix reload`  命令热加载更新,而不需要重启 apisix 服务?


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



[GitHub] [apisix-helm-chart] tao12345666333 commented on issue #243: `ConfigMap` cannot refresh by `subPath`

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #243:
URL: https://github.com/apache/apisix-helm-chart/issues/243#issuecomment-1057554086


   APISIX is a dynamic high-performance gateway, one of its main features is dynamism.  If there is a scenario where the configuration file needs to be modified, I prefer APISIX to provide this dynamic change capability


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



[GitHub] [apisix-helm-chart] anjia0532 commented on issue #243: `ConfigMap` cannot refresh by `subPath`

Posted by GitBox <gi...@apache.org>.
anjia0532 commented on issue #243:
URL: https://github.com/apache/apisix-helm-chart/issues/243#issuecomment-1057544816


   @tokers Acknowledge your point of view.
   But, 
   1.  `nginx -s reload` `openresty -s reload` `apisix reload` ... They provide that functionality.
   2. `ConfigMap`  provide delayed updates (Except for `subPath` )
   3.  An Apisx instance abnormal restarts unexpectedly after the configuration is modified, Cause inconsistency of Apisix  cluster.
   
   Screenshot of WeChat Group chat.
   ![image](https://user-images.githubusercontent.com/15098916/156473661-9ffdf353-2978-40a6-9617-30e2b91d40ef.png)
   


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



[GitHub] [apisix-helm-chart] tokers commented on issue #243: `ConfigMap` cannot refresh by `subPath`

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #243:
URL: https://github.com/apache/apisix-helm-chart/issues/243#issuecomment-1057569019


   > APISIX is a dynamic high-performance gateway, one of its main features is dynamism. If there is a scenario where the configuration file needs to be modified, I prefer APISIX to provide this dynamic change capability
   
   Yes, exactly.


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



[GitHub] [apisix-helm-chart] tokers commented on issue #243: `ConfigMap` cannot refresh by `subPath`

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #243:
URL: https://github.com/apache/apisix-helm-chart/issues/243#issuecomment-1056748394


   As per the immutable infrastructure design, I think reloading APISIX inside the pod is not a good idea.


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