From 7c37fbc80a7a3977b7257da7c1f3341831b5d4a7 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 16 Apr 2019 13:37:13 +0200 Subject: [PATCH] setup cluster --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 46fdf11..5a1a4cb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,19 @@ -# k8s-playground +# Cluster playground +## patch & install hetzner-kube + + docker pull golang + docker run --rm -ti --name=golang golang bash + git clone https://github.com/xetys/hetzner-kube + cd hetzner-kube + sed -i s'/kubernetes-cni/kubernetes-cni=0.6.0-00/' pkg/clustermanager/provision_node.go + go build + + docker cp golang:/go/hetzner-kube/hetzner-kube .local/bin/hetzner-kube + chmod +x .local/bin/hetzner-kube + +## setup cluster + + hetzner-kube cluster create --name k8s-test --ssh-key melpomene (-w 3) + hetzner-kube cluster kubeconfig k8s-test + kubectl cluster-info