Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Setting up Kubernetes cluster

1,182 bytes added, 05:20, 13 September 2015
created (not finished)
This article describes a way to deploy a Kubernetes cluster on a few CentOS 7 machines.

{{Stub}}

== Prerequisites ==

Every system should have:
* CentOS 7 minimal installed
* firewalld stopped
: <code>systemctl stop firewalld; systemctl disable firewalld</code>
* ntpd installed and running:
: <code>yum -y install ntpd && systemctl start ntpd && systemctl enable ntpd</code>

== Master installation ==

To install a master node, you need to do the following:

1. Install etcd and kubernetes-master:

yum -y install etcd kubernetes-master

2. Configure etcd to listen to all IPs.

Make sure <code>/etc/etcd/etcd.conf</code> contains this line:

ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:2379"

3. Configure Kubernetes API server.

Make sure <code>/etc/kubernetes/apiserver</code> contains this:


4. Start master node services:

for S in etcd kube-apiserver kube-controller-manager kube-scheduler; do
systemctl restart $S
systemctl enable $S
done

== Set nodes (minions) ==

1. Install flannel and kubernetes-node:

yum -y install flannel kubernetes-node


== See also ==

* [https://github.com/coreos/etcd/blob/master/Documentation/configuration.md etcd configuration]