script to create a single node k8 setup for testing in a core os instance
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files
.kubeform.sh.swp
LICENSE
README.md
kubeform.sh
kubeform_adm.sh

README.md

k8single

Basic k8s setup for a Core OS single node with the aim to use for staging or CI deployments. Follows https://coreos.com/kubernetes/docs/latest/getting-started.html

Only tested in Azure, it requires a Core OS instance running, then connect to it and:

cd k8;
./kubeform.sh [myip-address] --> ip associated to eth0, you can find it using ifconfig```

This will deploy k8 into a single scheduable node, it sets up kubectl in the node and deploys skydns add on.  

It also includes a busybox node file that can be deployed by:
```kubectl create -f files/busybox

This might come useful to debug issues with the set up. To execute commands in busybox run:

Kubeadm

It is now much simpler to set up a master node with kubeadm. I have pushed a new script that intalls the depencies for 16.04 and runs kubeamd. at the moment it is used weave for networking, but you can easily change this.

docs for kubeadm are here

cd k8;
./kubeform_adm.sh
kubectl get no -w   --> wait until the master node is ready
kubectl get po --all-namespaces --> check that all pods have come up ok