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 2020/09/08 03:55:06 UTC
[GitHub] [apisix] maxluo1992 opened a new issue #2182: request help:
maxluo1992 opened a new issue #2182:
URL: https://github.com/apache/apisix/issues/2182
### Issue description
根据本项目中kubernetes的部署步骤操作,在部署apisix-gw-config-cm.yaml发现pod内报错
/usr/local/openresty/luajit/bin/luajit: /usr/bin/apisix:701: failed to read `apisix` field from yaml file
stack traceback:
[C]: in function 'error'
/usr/bin/apisix:701: in function </usr/bin/apisix:668>
/usr/bin/apisix:922: in main chunk
[C]: at 0x00404c00
### Environment
* apisix version (cmd: `apisix version`):
* OS:
Centos7
二进制安装的K8S1.18.3
etcd是部署在K8S集群外的
----------------------------------------------------------------
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] maxluo1992 commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
maxluo1992 commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688616843
This is config.yaml file content:
```yaml
apiVersion: v1
data:
config.yaml: |
kind: ConfigMap
metadata:
name: apisix-gw-config.yaml
namespace: default
dns_resolver:
10.244.3.14
----------------------------------------------------------------
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] maxluo1992 commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
maxluo1992 commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688614223
OK
------------------ 原始邮件 ------------------
发件人: "Wen Ming"<notifications@github.com>;
发送时间: 2020年9月8日(星期二) 中午12:04
收件人: "apache/apisix"<apisix@noreply.github.com>;
抄送: "Max Luo"<963679535@qq.com>; "Mention"<mention@noreply.github.com>;
主题: Re: [apache/apisix] request help: (#2182)
@ maxluo1992请在公共频道上使用英语,thx
@gxthrj请看一下,thx
—
您收到此邮件是因为有人提到您。
直接回复此电子邮件,在GitHub上查看,或取消订阅。
----------------------------------------------------------------
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] gxthrj commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688703913
> This is config.yaml file content:
>
> ```yaml
> apiVersion: v1
> data:
> config.yaml: |
> kind: ConfigMap
> metadata:
> name: apisix-gw-config.yaml
> namespace: default
> dns_resolver:
> 10.244.3.14
> ```
```yaml
apiVersion: v1
data:
config.yaml: |
dns_resolver:
10.244.3.14
kind: ConfigMap
metadata:
name: apisix-gw-config.yaml
namespace: default
```
the `dns_resolver ` should be in `data` field
----------------------------------------------------------------
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] maxluo1992 removed a comment on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
maxluo1992 removed a comment on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688616472
This is config.yaml file content.
apiVersion: v1
data:
config.yaml: |
kind: ConfigMap
metadata:
name: apisix-gw-config.yaml
namespace: default
dns_resolver:
- 10.244.3.14
----------------------------------------------------------------
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] gxthrj commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688720546
need to update the doc for deploying APISIX in k8s
----------------------------------------------------------------
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] gxthrj closed issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
gxthrj closed issue #2182:
URL: https://github.com/apache/apisix/issues/2182
----------------------------------------------------------------
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] nic-chen commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688615907
@maxluo1992 please take a look at your local `apisix-gw-config-cm.yaml`, what is the content in it ?
----------------------------------------------------------------
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] maxluo1992 commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
maxluo1992 commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688616472
This is config.yaml file content.
apiVersion: v1
data:
config.yaml: |
kind: ConfigMap
metadata:
name: apisix-gw-config.yaml
namespace: default
dns_resolver:
- 10.244.3.14
----------------------------------------------------------------
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] maxluo1992 commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
maxluo1992 commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688785746
@gxthrj I found that APISIXl uses the http protocol to connect to etcd, but the etcd of the k8s cluster uses the mandatory https protocol, so it cannot connect.
----------------------------------------------------------------
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] gxthrj commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-731698129
@maxluo1992 We close this issue now .
And discussing [here](https://github.com/apache/apisix/issues/2814) about supporting `https` when connecting to 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] moonming commented on issue #2182: request help:
Posted by GitBox <gi...@apache.org>.
moonming commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688605651
@maxluo1992 Please use English in the public channel, thx
@gxthrj please take a look, thx
----------------------------------------------------------------
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] maxluo1992 commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
maxluo1992 commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688673638
Ok, I will have a try and give you the feedback if possible.
----------------------------------------------------------------
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] tokers commented on issue #2182: bug: error in the pod when deploying apisix-gw-config-cm.yaml in kubernetes
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #2182:
URL: https://github.com/apache/apisix/issues/2182#issuecomment-688642285
@maxluo1992
You should put the whole configuration file data into the `data` field of ConfigMap object, rather than add some fields like `dns_resolver` in ConfigMap own's spec.
----------------------------------------------------------------
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