Skip to content

Instantly share code, notes, and snippets.

@danielchg
Last active April 17, 2024 14:16
Show Gist options
  • Select an option

  • Save danielchg/b1571a724ff68e3c92c3ad7b1103c311 to your computer and use it in GitHub Desktop.

Select an option

Save danielchg/b1571a724ff68e3c92c3ad7b1103c311 to your computer and use it in GitHub Desktop.
kcli

Deploy compact OCP cluster

kcli create cluster openshift -P clusterprofile=sample-openshift-compact mno-412 -P tag=4.12.1 -P api_ip=192.168.122.252

Deploy compact cluster with defined ips using params file

paramsfile.yaml

clusterprofile: sample-openshift-compact
tag: 4.12.1 
api_ip: 192.168.122.252
vmrules:
- mno-412-ctlplane-0:
   nets:
   - ip: 192.168.122.100
     mask: 24
     gateway: 192.168.122.1
- mno-412-ctlplane-1:
   nets:
   - ip: 192.168.122.101
     mask: 24
     gateway: 192.168.122.1
- mno-412-ctlplane-2:
   nets:
   - ip: 192.168.122.102
     mask: 24
     gateway: 192.168.122.1

To deploy the cluster with the above params file

kcli create cluster openshift mno-412 --pf ./paramsfile.yaml

Deploy SNO

kcli create cluster openshift --force -P ctlplanes=1 -P memory=32768 -P version=stable -P tag=4.12.20 sno-4.12

Deploy SNO using cluster profile

kcli create cluster openshift -P clusterprofile=sample-single-node sno-414 -P tag=4.14.18

Get info from a cluster profile

# kcli info cluster-profile sample-openshift-sno
memory: 32768
apps: ['lvms-operator', 'users']
ctlplanes: 1
disk_size: 100
extra_disks: [100]
numcpus: 16
ovn_hostrouting: False
sslip: False
workers: 0
Empty File
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment