Deck
Recording
Deck
Recording
kubectl -n kube-system create sa jenkins | |
kubectl create clusterrolebinding jenkins --clusterrole cluster-admin --serviceaccount=<namespace>:jenkins |
moby-025000000007:/# kubectl get nodes
NAME STATUS AGE VERSION
moby-025000000007 NotReady 50s v1.6.2
moby-025000000008 NotReady 13s v1.6.2
moby-025000000007:/# helm init --net-host
Creating /root/.helm
MountVolume.SetUp failed for volume "kubernetes.io/azure-disk/889cb7d1-34f6-11e7-bda0-000d3a19697d-pvc-88904331-34f6-11e7-bda0-000d3a19697d" (spec.Name: "pvc-88904331-34f6-11e7-bda0-000d3a19697d") pod "889cb7d1-34f6-11e7-bda0-000d3a19697d" (UID: "889cb7d1-34f6-11e7-bda0-000d3a19697d") with: mount failed: exit status 32
kubectl describe po/<podname>
<snip>
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
I hereby claim:
To claim this, I am signing this object:
Use docker-machine to lay down 3 x hosts on AWS using docker-engine 1.12
docker-machine create --driver amazonec2 --amazonec2-private-address-only --engine-install-url https://test.docker.com/ levenson-docker-swarm-manager1
docker-machine create --driver amazonec2 --amazonec2-private-address-only --engine-install-url https://test.docker.com/ levenson-docker-swarm-worker1
# List running nodes | |
docker run -it --rm --volumes-from data levenson/kubectl get nodes | |
NAME LABELS STATUS | |
10.161.34.62 kubernetes.io/hostname=10.161.34.62 Ready | |
10.161.34.65 kubernetes.io/hostname=10.161.34.65 Ready | |
10.161.34.70 kubernetes.io/hostname=10.161.34.70 Ready | |
# Label nodes with name key | |
docker run -it --rm --volumes-from data levenson/kubectl label nodes 10.161.34.62 name=node-1 |