Skip to content

Instantly share code, notes, and snippets.

@sjenning
Created December 20, 2016 21:08
Show Gist options
  • Save sjenning/c64000039f9e2e451abe82d6aaa53a52 to your computer and use it in GitHub Desktop.
Save sjenning/c64000039f9e2e451abe82d6aaa53a52 to your computer and use it in GitHub Desktop.
create VMs
git clone https://github.com/kubernetes-incubator/kargo.git
cd kargo
cp ~/inventory.cfg inventory/.
vi inventory.cfg
(copy IPs and save)
date
ansible-playbook -u centos -b -i inventory/inventory.cfg cluster.yml
date (show elapsed time)
(ssh into kargo-1)
kubectl version
kubectl get nodes
kubectl get pods --all-namespaces
sudo docker ps
kubectl apply -n sock-shop -f "https://github.com/microservices-demo/microservices-demo/blob/master/deploy/kubernetes/complete-demo.yaml?raw=true"
watch kubectl get pod --namespace=sock-shop
kubectl describe svc front-end -n sock-shop
(open http://masterip:nodeport)
(show webpage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment