Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 459 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 459 Bytes

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

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