An example project for http://carlosbecker.dev/posts/k8s-leader-election
kubectl apply -f kube/
kubectl delete -f kube/
kubectl delete lease my-lock
GOOS=linux GOARCH=amd64 go build -o leaderz .
docker build -t caarlos0/leaderz .
docker push caarlos0/leaderz