-
Hello ApiSix people, I'm trying to figure out how to do a health check on the ApiSix deployment itself. Looking at the K8s/Helm implementation, the stateful set/pods do not have liveness/readiness probes set at all. Is there a special port or endpoint on the GW(9080), AdminAPI (9180), or somewhere else for a simple I'm trying to deploy to GKE K8s through the new K8s Gateway implementation, but the health check always fails. I've made a proxy on the GW(9080) GW(9080) Any ideas are welcome! p.s is there other way to get access to the Slack channel? send an email already while back, no luck... or it is meant only for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @bokjo, I'm here to help you with your ApiSix deployment question. I'm a bot that can assist you with bug fixes, answer questions, and guide you on how to become a contributor. Let me know how I can assist you! To perform a health check on an APISIX deployment using liveness/readiness probes, you can configure the probes in your Kubernetes deployment YAML file. The specific port and endpoint for the health check on the Gateway is port 9080 with the endpoint apiVersion: v1
kind: Deployment
metadata:
name: my-apisix-pod
spec:
containers:
- name: my-apisix-container
image: my-apisix-image
livenessProbe:
httpGet:
path: /healthz
port: 9080
initialDelaySeconds: 15
periodSeconds: 10
readinessProbe:
httpGet:
path: /readyz
port: 9080
initialDelaySeconds: 10
periodSeconds: 5 This configuration sets up a liveness probe that checks the Additionally, I found a similar closed issue where the suggested solution was to create a router To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Hey @bokjo,
I'm here to help you with your ApiSix deployment question. I'm a bot that can assist you with bug fixes, answer questions, and guide you on how to become a contributor. Let me know how I can assist you!
Dosu
To perform a health check on an APISIX deployment using liveness/readiness probes, you can configure the probes in your Kubernetes deployment YAML file. The specific port and endpoint for the health check on the Gateway is port 9080 with the endpoint
/healthz
. Here is an example configuration: