Healthcheck for custom endpoints. May be useful when we use ingress-nginx for custom endpoints (ingress-nginx had removed annotations upstream-max-fails and upstream-max-timeout, See kubernetes/ingress-nginx#4773).
make # build, push image and run
make build # build image
make run # deploy
make debug # debug
Custom endpoint should be labeled with type=external
REGISTRY=your.registry.com PROJECT=myproject make
Support wechat. edit deploy/with-rbac.yaml to set env or use make
CORPID=corpid CORPSECRET=corpsecret AGENTID=agentid TOUSER=@all make run
default use ingress. use make nodeport to create nodeport service.
| ENV | usage | default value |
|---|---|---|
| REGISTRY | custom registry | registry.cn-beijing.aliyuncs.com |
| PROJECT | custom project name | kubebase |
| APP | custom image name | k8s-ep-healthcheck |
| TAG | custom image tag | latest |
| NS | kubernetes namespace for deploy | default |
| CORPID | wechat corpid | corpid |
| CORPSECRET | wechat corpsecret | corpsecret |
| AGENTID | wechat agentid | 0 |
| TOUSER | wechat touser | @all |
| LOGLEVEL | log level | debug |
| INTERVAL | check interval for endpoints | 2 |
| TIMEOUT | timeout for tcp check | 500 |
| RETRY | retry for tcp check | 3 |
| HOST | hostname for ingress | $(APP).local |
| WATCHTIMEOUT | timeout for watch api | 300 |
