kubernetes : kubectl useful commands

Working through the interactive tutorial here is a good reference for kubectl usage. A few notes for reference: Copy master node config to a remote machine (from here): scp root@<master ip>:/etc/kubernetes/admin.conf . All of the commands if running on a remote machine can use the copied conf file by passing: –kubeconfig ./admin.conf Query nodes in the …

Deploying kubernetes Dashboard to a kubeadm created cluster

Per installations steps here, to deploy the dashboard: kubectl –kubeconfig ./admin.conf apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml The start the local proxy: ./kubectl –kubeconfig ./admin.conf proxy Accessing via http://localhost:8001/ui, gives this error: { “kind”: “Status”, “apiVersion”: “v1”, “metadata”: { }, “status”: “Failure”, “message”: “no endpoints available for service \”kubernetes-dashboard\””, “reason”: “ServiceUnavailable”, “code”: 503 } Checking what’s currently running with: …

Setting up a Kubernetes cluster across 2 virtualized CentOS nodes

tl:dr – I tried installing Kubernetes from scratch on Fedora Atomic hosts, but couldn’t get it working. I captured the steps I went through up until the point where I got stuck, but thinking there has to be an easier way, I found kubeadm and successfully used that to get a cluster up and running …