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 2021/06/21 04:12:22 UTC

[GitHub] [apisix-helm-chart] TIEDPAG opened a new issue #105: bug: 在k8s上部署,etcd无法启动

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


   ### 信息
   version:  0.3.4
   
   ### 问题:
   使用官网教程使用helm安装apisix时,出现etcd无法启动的问题,使用的命令如下:
   ```shell
   helm install apisix apisix/apisix \
     --set admin.allow.ipList="{0.0.0.0/0}" \
     --namespace ingress-apisix
   ```
   查看etcd日志错误如下:


-- 
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:
users@infra.apache.org



[GitHub] [apisix-helm-chart] TIEDPAG commented on issue #105: bug: 在k8s上部署,etcd无法启动

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






-- 
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:
users@infra.apache.org



[GitHub] [apisix-helm-chart] GeorGeWzw commented on issue #105: question: etcd can't start when enable securityContext

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


   @TIEDPAG 我用的是microk8s找不到这个chart的文件在那,方便说一下吗?
   


-- 
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] TIEDPAG closed issue #105: question: etcd can't start when enable securityContext

Posted by GitBox <gi...@apache.org>.
TIEDPAG closed issue #105:
URL: https://github.com/apache/apisix-helm-chart/issues/105


   


-- 
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 #105: question: etcd can't start when enable securityContext

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


   @TIEDPAG can we close this?


-- 
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 #105: question: etcd can't start when enable securityContext

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


   @TIEDPAG can we close this?


-- 
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] GeorGeWzw commented on issue #105: question: etcd can't start when enable securityContext

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


   @TIEDPAG volumePermissions设置为true 在哪里修改?pod的yaml吗?


-- 
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] TIEDPAG removed a comment on issue #105: bug: 在k8s上部署,etcd无法启动

Posted by GitBox <gi...@apache.org>.
TIEDPAG removed a comment on issue #105:
URL: https://github.com/apache/apisix-helm-chart/issues/105#issuecomment-864715232


   前往查看bitnami/etcd 的helm chart,发现如下:
   ![image](https://user-images.githubusercontent.com/24646612/122706444-8a260780-d28a-11eb-8d2e-0a2bafc758fa.png)
   检查values.yaml文件:
   ```yaml
   ## Enable persistence using Persistent Volume Claims
   ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
   ##
   persistence:
     ## If true, use a Persistent Volume Claim, If false, use emptyDir
     ##
     enabled: true
   
   ## Init containers parameters:
   ## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
   ##
   volumePermissions:
     enabled: false
     image:
       registry: docker.io
       repository: bitnami/minideb
       tag: buster
       pullPolicy: Always
   ```
   
   尝试把volumePermissions设置为true,etcd正常启动,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.

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



[GitHub] [apisix-helm-chart] TIEDPAG commented on issue #105: bug: 在k8s上部署,etcd无法启动

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


   我的集群已启用了securityContext,我使用的k8s版本是1.18.17
   目前使用了`--set etcd. volumePermissions .enabled=true`解决


-- 
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:
users@infra.apache.org



[GitHub] [apisix-helm-chart] GeorGeWzw commented on issue #105: question: etcd can't start when enable securityContext

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


   @TIEDPAG 我不知道这个文件values.yaml在那


-- 
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] TIEDPAG closed issue #105: question: etcd can't start when enable securityContext

Posted by GitBox <gi...@apache.org>.
TIEDPAG closed issue #105:
URL: https://github.com/apache/apisix-helm-chart/issues/105


   


-- 
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 #105: bug: 在k8s上部署,etcd无法启动

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


   Thanks for the report.
   
   Does your cluster enable securityContext by default? I can successfully deploy and run in a k8s cluster that uses kubeadm's default installation.
   
   
   
   
   > 是否考虑在apisix的charts里将subchart的变量覆盖
   
   you can pass `--set etcd.volumePermissions.enabled=true` to `helm install` commands.


-- 
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:
users@infra.apache.org



[GitHub] [apisix-helm-chart] TIEDPAG commented on issue #105: question: etcd can't start when enable securityContext

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


   直接修改子chart的value,之前版本是etcd.volumePermissions.enabled


-- 
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] TIEDPAG commented on issue #105: question: etcd can't start when enable securityContext

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


   你不太了解helm吧?apisix使用的是https://github.com/bitnami/charts/tree/master/bitnami/etcd作为subchart,上面我们也讨论了,直接helm install --set etcd.volumePermissions.enabled=true就好了


-- 
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] GeorGeWzw commented on issue #105: question: etcd can't start when enable securityContext

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


   @TIEDPAG 已经找到了,谢谢
   


-- 
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] TIEDPAG commented on issue #105: bug: 在k8s上部署,etcd无法启动

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


   我的集群已启用了securityContext,我使用的k8s版本是1.18.17
   目前使用了`--set etcd. volumePermissions .enabled=true`解决


-- 
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:
users@infra.apache.org



[GitHub] [apisix-helm-chart] TIEDPAG commented on issue #105: bug: 在k8s上部署,etcd无法启动

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


   是否考虑在apisix的charts里将subchart的变量覆盖


-- 
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:
users@infra.apache.org