Scaling Openshift UPI Clusters Using Central Infrastructure Management

Using A PXE server

Using The RHCOS LiveCD

About CIM

Prerequisites

  • A running UPI-based Openshift cluster, That was deployed by CIM
  • A Bastion machine for applying all Custom Resources

Deploying A Compact (Three-Node) Openshift Cluster

apiVersion: agent-install.openshift.io/v1beta1
kind: NMStateConfig
metadata:
name: ocp2-worker01
namespace: ocp-compact
labels:
cluster-name: ocp-compact
spec:
config:
interfaces:
- name: eth1
macAddress: 52:54:00:cd:3d:7a
type: ethernet
state: up
ipv4:
enabled: true
address:
- ip: 192.168.1.91
prefix-length: 24
dhcp: false
dns-resolver:
config:
search:
- spaz.local
server:
- 192.168.1.150
routes:
config:
- destination: 0.0.0.0/0
next-hop-address: 192.168.1.1
next-hop-interface: eth1
interfaces:
- name: "eth1"
macAddress: "52:54:00:cd:3d:7a"

Scaling The Cluster

apiVersion: agent-install.openshift.io/v1beta1
kind: NMStateConfig
metadata:
name: ocp2-worker04
namespace: ocp-compact
labels:
cluster-name: ocp-compact
spec:
config:
interfaces:
- name: eth1
macAddress: 52:54:00:8c:11:fe
type: ethernet
state: up
ipv4:
enabled: true
address:
- ip: 192.168.1.98
prefix-length: 24
dhcp: false
dns-resolver:
config:
search:
- spaz.local
server:
- 192.168.1.150
routes:
config:
- destination: 0.0.0.0/0
next-hop-address: 192.168.1.1
next-hop-interface: eth1
interfaces:
- name: "eth1"
macAddress: "52:54:00:8c:11:fe"
$ oc adm certificate approve <csr_name>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store