You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Asakaigg (via GitHub)" <gi...@apache.org> on 2024/04/24 00:35:59 UTC
[I] bug: [apisix]
Asakaigg opened a new issue, #11189:
URL: https://github.com/apache/apisix/issues/11189
### Current Behavior
I am using apache apisix on the kubernetes but when I have installed the apisix but it got the error like this



### Expected Behavior
I need install the apisix on the kubernetes but when I move port forwarding two pods are stopped
### Error Logs
_No response_
### Steps to Reproduce
helm install
helm install bitnami
helm install apisix apisix/apisix --namespace apache-gateway
### Environment
apisix version: apisix-3.0.2
Operating system: Ubuntu 22.0.4
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: [apisix]
Posted by "hanqingwu (via GitHub)" <gi...@apache.org>.
hanqingwu commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-2073787181
Can you check the reason about why etcd `apisix-etcd-0` not running ?
--
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
Re: [I] bug: [apisix]
Posted by "Asakaigg (via GitHub)" <gi...@apache.org>.
Asakaigg commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-2073888607
this is the guide from apisix
due to this error, I have reinstalled with this guide but all pods is not running

https://apisix.apache.org/blog/2021/12/15/deploy-apisix-in-kubernetes/
using kubectl describe pod pod_name --n namespace_name , I got this error

using kubectl logs pod_name --n namespace_name, I got this error


--
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
Re: [I] bug: apisix-etcd pod CrashLoopBackOff [apisix]
Posted by "pietrogoddibit2win (via GitHub)" <gi...@apache.org>.
pietrogoddibit2win commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-2271062844
Same issue on GKE
--
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
Re: [I] bug: [apisix]
Posted by "Asakaigg (via GitHub)" <gi...@apache.org>.
Asakaigg commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-2073897999
> Can you check the reason about why etcd `apisix-etcd-0` not running ?
Could you please check the errors ? It is a little challenge from me. I hope you help me on 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
Re: [I] help request: apisix-etcd pod CrashLoopBackOff [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-3996281121
Since this issue is unrelated to APISIX, I'll close this issue for now. I suggest:
1. Checking your Kubernetes DNS and network policies;
2. Testing with etcd replicas set to 1;
3. Reviewing the Bitnami etcd chart troubleshooting documentation;
4. Seeking help from the Kubernetes or Bitnami community.
--
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
Re: [I] bug: [apisix]
Posted by "Asakaigg (via GitHub)" <gi...@apache.org>.
Asakaigg commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-2073951917
> ETCD_ADVERTISE_CLIENT_URLS
> Yes, the etcd cluster is not running normal. So you can scale etcd replicas from 3 to 1 . Or you can try preference etcd cluster config like this:
>
> ```
>
> ETCD_ENABLE_V2: true
> ALLOW_NONE_AUTHENTICATION: yes
> ETCD_NAME: cooper-apisix-etcd-1 (v1:metadata.name)
> POD_IP: (v1:status.podIP)
> ETCD_ADVERTISE_CLIENT_URLS: http://$(POD_IP):2379
> ETCD_INITIAL_ADVERTISE_PEER_URLS: http://$(ETCD_NAME).cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380
> ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
> ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
> ETCD_INITIAL_CLUSTER: cooper-apisix-etcd-0=http://cooper-apisix-etcd-0.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380,cooper-apisix-etcd-1=http://cooper-apisix-etcd-1.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380,cooper-apisix-etcd-2=http://cooper-apisix-etcd-2.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380
> ETCD_INITIAL_CLUSTER_TOKEN: apisix-etcd-cluster
> ETCD_INITIAL_CLUSTER_STATE: new
> ETCD_DEBUG: true
> ```
Could you explain the difference between standard and your configuration ?
--
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
Re: [I] help request: apisix-etcd pod CrashLoopBackOff [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop closed issue #11189: help request: apisix-etcd pod CrashLoopBackOff
URL: https://github.com/apache/apisix/issues/11189
--
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
Re: [I] bug: [apisix]
Posted by "hanqingwu (via GitHub)" <gi...@apache.org>.
hanqingwu commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-2073930030
Yes, the etcd cluster is not running normal.
So you can scale etcd replicas from 3 to 1 .
Or you can try preference etcd cluster config like this:
```
ETCD_ENABLE_V2: true
ALLOW_NONE_AUTHENTICATION: yes
ETCD_NAME: cooper-apisix-etcd-1 (v1:metadata.name)
POD_IP: (v1:status.podIP)
ETCD_ADVERTISE_CLIENT_URLS: http://$(POD_IP):2379
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://$(ETCD_NAME).cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_INITIAL_CLUSTER: cooper-apisix-etcd-0=http://cooper-apisix-etcd-0.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380,cooper-apisix-etcd-1=http://cooper-apisix-etcd-1.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380,cooper-apisix-etcd-2=http://cooper-apisix-etcd-2.cooper-apisix-etcd.paas-middleware-workspace-middleware.svc:2380
ETCD_INITIAL_CLUSTER_TOKEN: apisix-etcd-cluster
ETCD_INITIAL_CLUSTER_STATE: new
ETCD_DEBUG: 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
Re: [I] bug: [apisix]
Posted by "Asakaigg (via GitHub)" <gi...@apache.org>.
Asakaigg commented on issue #11189:
URL: https://github.com/apache/apisix/issues/11189#issuecomment-2073953461
- name: etcd
image: docker.io/bitnami/etcd:3.5.7-debian-11-r14
ports:
- name: client
containerPort: 2379
protocol: TCP
- name: peer
containerPort: 2380
protocol: TCP
env:
- name: BITNAMI_DEBUG
value: 'false'
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_STS_NAME
value: apisix-etcd
- name: ETCDCTL_API
value: '3'
- name: ETCD_ON_K8S
value: 'yes'
- name: ETCD_START_FROM_SNAPSHOT
value: 'no'
- name: ETCD_DISASTER_RECOVERY
value: 'no'
- name: ETCD_NAME
value: $(MY_POD_NAME)
- name: ETCD_DATA_DIR
value: /bitnami/etcd/data
- name: ETCD_LOG_LEVEL
value: info
- name: ALLOW_NONE_AUTHENTICATION
value: 'yes'
- name: ETCD_AUTH_TOKEN
value: >-
jwt,priv-key=/opt/bitnami/etcd/certs/token/jwt-token.pem,sign-method=RS256,ttl=10m
- name: ETCD_ADVERTISE_CLIENT_URLS
value: >-
http://$(MY_POD_NAME).apisix-etcd-headless.api-gateway.svc.cluster.local:2379,http://apisix-etcd.api-gateway.svc.cluster.local:2379
- name: ETCD_LISTEN_CLIENT_URLS
value: http://0.0.0.0:2379
- name: ETCD_INITIAL_ADVERTISE_PEER_URLS
value: >-
http://$(MY_POD_NAME).apisix-etcd-headless.api-gateway.svc.cluster.local:2380
- name: ETCD_LISTEN_PEER_URLS
value: http://0.0.0.0:2380
- name: ETCD_INITIAL_CLUSTER_TOKEN
value: etcd-cluster-k8s
- name: ETCD_INITIAL_CLUSTER_STATE
value: new
- name: ETCD_INITIAL_CLUSTER
value: >-
apisix-etcd-0=http://apisix-etcd-0.apisix-etcd-headless.api-gateway.svc.cluster.local:2380,apisix-etcd-1=http://apisix-etcd-1.apisix-etcd-headless.api-gateway.svc.cluster.local:2380,apisix-etcd-2=http://apisix-etcd-2.apisix-etcd-headless.api-gateway.svc.cluster.local:2380
- name: ETCD_CLUSTER_DOMAIN
value: apisix-etcd-headless.api-gateway.svc.cluster.local
--
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