Skip to content

Deploy an OpenShift cluster on Linux locally using Ansible and libvirt.

License

Notifications You must be signed in to change notification settings

karstengresch/localshift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localshift

Deploy an OpenShift cluster on Linux locally using Ansible and libvirt.

Background

As a solution architect at Red Hat, I want to use a real OpenShift cluster on my - powerful - laptop.

Though there are minishift/CDK and crc/CodeReady Containers, these approaches miss my needs because they install the entire cluster in one big (libvirt/HyperV/VirtualBox/xhyve) virtual machine.

Minishift furthermore uses oc cluster up to initialize and run the cluster, whereas crc is a comprehensive go application.

What I need and like to hack around with is more advanced functionality (affinity pod placement, killing nodes, distributing workload over multiple nodes).

Here's is my try to get an OpenShift cluster running as per the default recommended installation method.

Plan (as of 2019-09-20)

  1. Create multiple libvirt VMs for later deployment within a usable kvm network and attached libvirt storage.
  2. Run the OpenShift OpenShift libvirt installer against these machines.

Design dreams

Not sure if this can be achieved, but I like to implement

  • Deployment profiles (
    • mini: 1 master, 1 infra, 2 worker;
    • default: 2 master, 2 infra, 3 worker;
    • ha: 3 (?) master, 3 (?) infra, 4 worker).
  • Dynamic host naming convention (later)
  • IP range specification

in a way, that the base information can be specified in an external file.

Giant's shoulder

Links to external articles/projects that could be useful:

Articles/Documentation

Bare metal installation of OpenShift (official docs) Ales Nosek: Installing OpenShift 4.1 Using Libvirt and KVM

Red Hat EMEA Services libvirt section for ocp 4

https://github.com/jkhelil/openshift-poc/blob/master/openshift-ansible/README_libvirt.md

Projects

https://github.com/RedHat-EMEA-SSA-Team/hetzner-ocp4

https://github.com/jkhelil/openshift-poc

About

Deploy an OpenShift cluster on Linux locally using Ansible and libvirt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published