# installed Docker CE 18.09.7 on Ubuntu 18.04
sudo curl -fsSLo /usr/local/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64
sudo chmod +x /usr/local/bin/kind
docker pull kindest/node:v1.13.7
cat <<EOF > kind-config.yaml
kind: Cluster
# see https://godoc.org/sigs.k8s.io/kind/pkg/apis/config/v1alpha3#Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
networking:
apiServerAddress: 0.0.0.0
apiServerPort: 6443
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta1
# see https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1#NodeRegistrationOptions
kind: JoinConfiguration
metadata:
name: config
nodeRegistration:
kubeletExtraArgs:
"dynamic-config-dir": "/tmp/kubelet-config"
EOF
kind create cluster --image kindest/node:v1.13.7 --config kind-config.yaml
Last active
August 1, 2019 04:07
-
-
Save lacek/055c74aff85e3fc243d9df00953135f8 to your computer and use it in GitHub Desktop.
Offline KIND: https://kind.sigs.k8s.io/docs/user/quick-start/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment