Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caarlos0-graveyard/leaderz
an example for a blog a post
https://github.com/caarlos0-graveyard/leaderz
Last synced: 2 months ago
JSON representation
an example for a blog a post
- Host: GitHub
- URL: https://github.com/caarlos0-graveyard/leaderz
- Owner: caarlos0-graveyard
- Created: 2020-03-14T15:34:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-07T17:35:09.000Z (over 4 years ago)
- Last Synced: 2024-05-01T12:36:02.327Z (9 months ago)
- Language: Go
- Homepage: https://carlosbecker.dev/posts/k8s-leader-election
- Size: 12.7 KB
- Stars: 14
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-devops - leaderz - Modern `coordination` API based leader election example for [blog post](https://carlosbecker.com/posts/k8s-leader-election/) (Kubernetes / Kubernetes // Leader Election)
README
# leaderz
An example project for http://carlosbecker.dev/posts/k8s-leader-election
## Applying
```shell script
kubectl apply -f kube/
```## Remove
```shell script
kubectl delete -f kube/
kubectl delete lease my-lock
```## Building
```shell script
GOOS=linux GOARCH=amd64 go build -o leaderz .
docker build -t caarlos0/leaderz .
docker push caarlos0/leaderz
```