Install the latest OpenShift V3 on CentOS 7.x

Prerequisites: CentOS 7.x minimal install (tested on 7.2)

Updated 2016/06/05: to docker 1.11.x & OPENSHIFT_VERSION=v1.2.0

Mode: Single node setup, all manual.

Step 1: Install docker and tweak INSECURE_REGISTRY for smoother operation on “integrated docker registry”.

Fix DNS (as needed)

tee -a /etc/hosts << '__EOF__' osv3-single

Continue reading Install the latest OpenShift V3 on CentOS 7.x

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


Modding CentOS 7.x CD to Kickstart Automatically

This is my solution for re-installing my lab server quickly. I just boot from this modded CD (source CentOS-7-x86_64-Minimal-1511) which will eject the CD after re-build and boots into a freshly baked “CentOS” in less than 10 minutes (I’ll cover KS and network setup in different post).

The trick lies in tweaking “isolinux/isolinux.cfg” – you can see original file here.


[sudhaker@dell-server ~]$ diff isolinux-orig.cfg isolinux.cfg
< timeout 600
> timeout 10
> label linux-ks
>   menu label Install CentOS 7 ^KS
>   menu default
>   kernel vmlinuz
>   append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 ks= quiet
<   menu default

Here are summary of changes (also highlighted above).

  1. Change timeout to 10 (or even lower if you like) from original 600 (10 minutes)
  2. Clone the boot option ‘linux’ section as ‘linux-ks’
  3. Make this new cloned option as default boot option
  4. Add ks=URL
  5. Remove ‘menu default’ from the old boot option