Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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