Installation of Kubernetes on Openshift Origin 3.11
This document describes how to install Kubernetes on Openshift Origin 3.11 platform.
1) Operating System Configurations (All Servers)
POWERSHELL
|
2) Docker Installation
2.1) Container Installation (Will be Done on All Openshift Servers)
Before proceeding to Kubernetes installation, the following steps are followed to prepare the system and install Docker.
POWERSHELL
sysctl settings
POWERSHELL
The first three lines here are mandatory, and the others can be changed according to the need.
YML
Docker installation is done with the following codes.
POWERSHELL
Docker service is started along with the final settings.
POWERSHELL
|
2.2) Kubernetes Installation (On Master)
POWERSHELL
|
2.2.1) Bash Auto-Completion (Optional, On Any Openshift Master Server)
This process can speed up the writing of Openshift commands.
POWERSHELL
|
2.2.2) Setting User Configuration of Kubectl Command on Openshift Master Server (On Openshift Master Servers)
Definitions are made for the user who will run the kubectl commands
POWERSHELL
|
2.2.3) Install Kubernetes Network Plugin (On Openshift Master Servers)
In this guide, we will use the Flannel network add-on. You can choose other supported network add-ons. Flannel is a simple and easy way to configure a layer 3 network architecture for Kubernetes.
POWERSHELL
Important If you did not use the value 10.244.0.0/16 as podCIDR while initializing the Master, you should download the above yaml file and edit the network settings here as well. |
2.2.4) Installation Check (On Any Openshift Master Server )
If the Node created in addition to the Master can be seen when the following code is run on the Master, the installation has been completed successfully.
If it does not transition from NotReady to Ready status within two minutes, the problem should be investigated with the command 'kubectl describe node NODENAME'.
BASH
|
2.2.5) Defining Openshift Permissions (On Openshift Master Servers)
By default, Openshift deploys with at least one RBAC configuration to protect your cluster data. Currently, Dashboard only supports login with Bearer Token. Follow the steps below in order.
vi service.yaml
YML
vi adminuser.yaml
YML
POWERSHELL
|
2.3) DNS Test (Optional, On Any Openshift Master Server)
POWERSHELL
|