Install the latest Kubernetes on CentOS 7.x

This is how we get a single machine installation of Kubernetes 1.2.0 on CentOS 7.2

Update 2016-Apr-23: The latest release of Kubernetes is now available in repo “extras”.

Mode: Single node setup, extra repo.

[root@my-build-n5 ~]# date
Sat Apr 23 12:08:13 EDT 2016
[root@my-build-n5 ~]# yum info kubernetes
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
Name        : kubernetes
Arch        : x86_64
Version     : 1.2.0
Release     : 0.9.alpha1.gitb57e8bd.el7
Size        : 34 k
Repo        : extras
Summary     : Container cluster management
URL         :
License     : ASL 2.0
Description : Container cluster management

Install ‘docker’, ‘etcd’ & ‘kubernetes’

yum install docker etcd kubernetes 
for SERVICE in docker etcd kube-apiserver kube-controller-manager kube-scheduler kube-proxy kubelet; do 
    systemctl restart $SERVICE
    systemctl enable $SERVICE
yum install cockpit cockpit-kubernetes
systemctl enable cockpit.socket
systemctl start cockpit.socket
firewall-cmd --permanent --zone=public --add-port=9090/tcp && firewall-cmd --reload

And browse to cockpit UI -> https://server_ip:9090


Leave a Reply

Your email address will not be published. Required fields are marked *