The recommended way to run Kubernetes on CoreOS is to use Cloud-Config.
The standalone cloud-config file can be used to setup a single node Kubernetes cluster.
- standalone.yml
The following cloud-config files can be used to setup a three node Kubernetes cluster.
- master.yml
- node1.yml
- node2.yml
mkdir -p /tmp/new-drive/openstack/latest/
mkdir -p ~/iso
cd configs
Using Linux:
for i in standalone master node1 node2; do
cp ${i}.yml /tmp/new-drive/openstack/latest/user_data
mkisofs -R -V config-2 -o ~/iso/${i}.iso /tmp/new-drive
done
Using OS X:
for i in standalone master node1 node2; do
cp ${i}.yml /tmp/new-drive/openstack/latest/user_data
hdiutil makehybrid -iso -joliet -joliet-volume-name "config-2" -joliet -o ~/iso/${i}.iso /tmp/new-drive
done
Setup a SSH tunnel to the Kubernetes API Server.
sudo ssh -f -nNT -L 8080:127.0.0.1:8080 core@${APISERVER}
Download a kubecfg client
Darwin
wget http://storage.googleapis.com/kubernetes/darwin/kubecfg -O /usr/local/bin/kubecfg
Linux
wget http://storage.googleapis.com/kubernetes/kubecfg -O /usr/local/bin/kubecfg
Issue commands remotely using the kubecfg command line tool.
kubecfg list /pods