Skip to content

ops-itop/k8s-ep-healthcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-ep-healthcheck

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).

Preview

Usage

make         # build, push image and run
make build   # build image
make run     # deploy
make debug   # debug

Custom endpoint should be labeled with type=external

Custom image

REGISTRY=your.registry.com PROJECT=myproject make

Notify

Support wechat. edit deploy/with-rbac.yaml to set env or use make

CORPID=corpid CORPSECRET=corpsecret AGENTID=agentid TOUSER=@all make run

Dashboard

default use ingress. use make nodeport to create nodeport service.

Available config

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

About

healthcheck for kubernetes custom endpoints

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published