Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cropalato/k8s-gentoken
API to generate kubeadm join command
https://github.com/cropalato/k8s-gentoken
Last synced: about 6 hours ago
JSON representation
API to generate kubeadm join command
- Host: GitHub
- URL: https://github.com/cropalato/k8s-gentoken
- Owner: cropalato
- License: mit
- Created: 2022-07-15T15:56:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T15:03:18.000Z (over 2 years ago)
- Last Synced: 2024-06-19T11:23:46.031Z (7 months ago)
- Language: Go
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# k8s-gentoken
This project will generate a kubeadm command to join a k8s cluster
## How does it works
It is a http server. It will reply a request with a valid kubeadm join command to include a node to an existing cluster.
## Input
```bash
curl --fail -s -XPOST --header "format: text" "http://localhost:8000/join"
```## Building
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o k8s-gentoken *.go