OCCNE Kubernetes Installer
These procedures provide the steps required to install the K8's image onto all hosts via the Bastion Host using a occne/k8s_install container. Once completed, configure procedure can be run.
Prerequisites
- All the hosts servers where this VM is created are captured in Inventory File Preparation.
- Kubespray base image
should be available on bastion host with tag 2.10.3.1
docker pull cgbu-dev-docker.dockerhub-den.oraclecorp.com/occne/kubespray:2.10.3.1
- Retag Kubespray base image
to winterfell:5000/occne/kubespray:2.10.3.1 on bastion host
Example-
docker tag cgbu-dev-docker.dockerhub-den.oraclecorp.com/occne/kubespray:2.10.3.1 winterfell:5000/occne/kubespray:2.10.3.1
Note:
For executing k8s install in this release we need to retag kubespray base image to winterfell:5000/occne/kubespray:2.10.3.1 on bastion host but in future releases this will change. - Host names and IP Address, network information assigned to this VM is captured in the Installation PreFlight Checklist
- Cluster Inventory File and SSH Keys are present in the cluster_name folder in var/occne directory
- A docker image for 'k8s_install' must be available in the docker registry accessible by Bastion host. Installation Procedure
Limitations and Expectations
Steps to Perform OCCNE Kubernetes Installer
All steps are executable from a SSH application (putty) connected laptop accessible via the Management Interface.
Table 3-14 Procedure to install OCCNE Kubernetes
Step # | Procedure | Description |
---|---|---|
1 ![]() |
Initial Configuration on the Bastion Host to Support the Kubernetes Install |
|
2 ![]() |
Execute the Kubernetes Install on the Hosts from the Bastion Host |
Note: The cluster_name field is derived from the hosts.ini file
field:
The
Start the k8s_install container with a bash shell : Example:
For example:
|
3 ![]() |
Update the $PATH Environment Variable to access the kubectl command from the kubectl.sh script |
On the Bastion Host, edit the
%% On the bastion Host edit file /root/.bash_profile. # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH %% Update the following to the PATH variable: PATH=$PATH:/var/occne/<cluster_name>/artifacts %% Save the file and source the .bash_profile file: source /root/.bash_profile %% Execute the following to verify the $PATH has been updated. echo $PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/var/occne/rainbow.lab.us.oracle.com/artifacts %% Make sure the permissions on the /var/occne/rainbow.lab.us.oracle.com/artifacts/kubectl.sh and /var/occne/rainbow.lab.us.oracle.com/artifacts/kubectl files are set correctly: -rwxr-xr-x. 1 root root 248122280 May 30 18:23 kubectl -rwxr-xr-x. 1 root root 112 May 30 18:44 kubectl.sh %% If not run the following command: chmod +x kubectl |
4 ![]() |
Run Kubernetes Cluster Tests |
For verification of k8s installation, run docker command in the k8s_install /test/cluster_test. |