Skip to content

Instantly share code, notes, and snippets.

@docwhat
Created October 22, 2019 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save docwhat/f54f45e9252c25e15f835acf3dc7400e to your computer and use it in GitHub Desktop.
Save docwhat/f54f45e9252c25e15f835acf3dc7400e to your computer and use it in GitHub Desktop.
$ uname -a
Darwin bluewhat.local 19.0.0 Darwin Kernel Version 19.0.0: Wed Sep 25 20:18:50 PDT 2019; root:xnu-6153.11.26~2/RELEASE_X86_64 x86_64
$ k3d create --workers=2 --image=docker.io/rancher/k3s:v0.9.1
INFO[0000] Created cluster network with ID 0b01d65880241866f5e80968477ef60340b2abe408585e907e9755d1580375b1
INFO[0000] Created docker volume  k3d-k3s-default-images
INFO[0000] Creating cluster [k3s-default]
INFO[0000] Creating server using docker.io/rancher/k3s:v0.9.1...
INFO[0000] Booting 2 workers for cluster k3s-default
INFO[0001] Created worker with ID 739ef6c7ac4062bbc00159d4cb03648ba64e3b0ab06e41e0070815a709b26f83
INFO[0002] Created worker with ID 5008ee08bb0fb8e74888e24cf63b4a6a1bbe20e70b42bf9d6c71091a2398c85b
INFO[0002] SUCCESS: created cluster [k3s-default]
INFO[0002] You can now use the cluster with:

export KUBECONFIG="$(k3d get-kubeconfig --name='k3s-default')"
kubectl cluster-info
$ export KUBECONFIG="$(k3d get-kubeconfig --name='k3s-default')"
$ kubectl cluster-info
Kubernetes master is running at https://127.0.0.1:6443
CoreDNS is running at https://127.0.0.1:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
$ kubectl get nodes
NAME                       STATUS   ROLES    AGE   VERSION
k3d-k3s-default-worker-0   Ready    worker   23s   v1.15.4-k3s.1
k3d-k3s-default-server     Ready    master   22s   v1.15.4-k3s.1
k3d-k3s-default-worker-1   Ready    worker   22s   v1.15.4-k3s.1
$ kubectl get namespaces
NAME              STATUS   AGE
default           Active   113s
kube-system       Active   113s
kube-public       Active   113s
kube-node-lease   Active   113s
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment