[bug]:记一个k8s client-go leaderelection的bug
环境:k8s 1.17.2申请租约后,进程异常结束没有正常释放租约leaderelection.go:308] Failed to release lock: Lease.coordination.k8s.io "go-demo" is invalid: spec.leaseDurationSeconds: Invalid value: 0: must be greater than 0源码:cl
·
环境:k8s 1.17.2
申请租约后,进程异常结束没有正常释放租约
leaderelection.go:308] Failed to release lock: Lease.coordination.k8s.io "go-demo" is invalid: spec.leaseDurationSeconds: Invalid value: 0: must be greater than 0
源码:
client-go/leaderelection.go at v0.17.2 · kubernetes/client-go · GitHub
最新版本已修改:v1.22.0之后
更多推荐
已为社区贡献6条内容
所有评论(0)