Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 1.59 KB

coreos_cloud_config.md

File metadata and controls

75 lines (52 loc) · 1.59 KB

CoreOS Cloud Configs

The recommended way to run Kubernetes on CoreOS is to use Cloud-Config.

Setup

Standalone

The standalone cloud-config file can be used to setup a single node Kubernetes cluster.

Cluster

The following cloud-config files can be used to setup a three node Kubernetes cluster.

Creating config-drives

mkdir -p /tmp/new-drive/openstack/latest/
mkdir -p ~/iso
git clone https://github.com/GoogleCloudPlatform/kubernetes.git
cd kubernetes/docs/getting-started-guides/coreos/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

Remote Access

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