Install RedHat OKD 3.11 on your own server. For a local only install, it is suggested that you use CDK or MiniShift instead of this repo. This install method is targeted for a single node cluster that has a long life.
This repository is a set of scripts that will allow you easily install the latest version (3.11) of OKD in a single node fashion. What that means is that all of the services required for OKD to function (master, node, etcd, etc.) will all be installed on a single host. The script supports a custom hostname which you can provide using the interactive mode.
Please do use a clean CentOS system, the script installs all necesary tools and packages including Ansible, container runtime, etc.
Create a VM as explained in https://www.youtube.com/watch?v=ZkFIozGY0IA (this video) by Grant Shipley
Clone this repo
git clone https://github.com/mvazquezc/installcentos.git
- Execute the installation script
cd installcentos ./install-openshift.sh
- Define mandatory variables for the installation process
# Domain name to access the cluster $ export DOMAIN=<public ip address>.nip.io # User created after installation $ export USERNAME=<current user name> # Password for the user $ export PASSWORD=password
- Define optional variables for the installation process
# Instead of using loopback, setup DeviceMapper on this disk. # !! All data on the disk will be wiped out !! $ export DISK="/dev/sda"
- Run the automagic installation script as root with the environment variable in place:
curl https://raw.githubusercontent.com/gshipley/installcentos/master/install-openshift.sh | INTERACTIVE=false /bin/bash
For development it's possible to switch the script repo
# Change location of source repository $ export SCRIPT_REPO="https://raw.githubusercontent.com/gshipley/installcentos/master" $ curl $SCRIPT_REPO/install-openshift.sh | /bin/bash
The script is tested using the tooling in the
To use the tooling, it's required to create file
validate/env.sh with the DigitalOcean API key
and then run
start.sh to start the provisioning. Once the ssh is connected to the server, the
script will atatch to the
tmux session running Ansible installer.
To destroy the infrastructure, run the