This is a virtual lab for development & integration of the RAN ZTP solution using GitOps. This lab creates a virtualized cluster containing:
- Single Node OpenShift (SNO) cluster, as hub cluster, including ACM, GitOps, BMO, and TALO operators.
- SNO cluster, managed by ACM as spoke.
In order to accomplish so, we'll be relying on kcli as a tool to handle the creation and configuration of the VMs.
Note: You'll be in need of a server to handle this, as its memory requirements would be probably greater than your laptops. You should consider at least 64GBi of ram for the SNO and 32Gbi for the spoke one.
- Install kcli https://github.com/karmab/kcli.git
- Clone locally https://github.com/leo8a/ztp-for-ran-samples
- Install Ansible https://docs.ansible.com/ansible/latest/installation_guide/index.html
+---------------+--------+-----------------+----------------------------------------------------+-------------+---------+
| Name | Status | Ip | Source | Plan | Profile |
+---------------+--------+-----------------+----------------------------------------------------+-------------+---------+
| hub-master-0 | up | 192.168.122.101 | rhcos-410.84.202201251210-0-openstack.x86_64.qcow2 | ztp-ran-lab | kvirt |
| hub-spoke-sno | up | | | ztp-ran-lab | kvirt |
+---------------+--------+-----------------+----------------------------------------------------+-------------+---------+
Once the lab is deployed, the kubeconfig file will be available on your
~/.kube/config
path.
You may access the hub-master-0
machine, at any time, by using:
$ kcli ssh hub-master-0
And the hub-spoke-sno
machine with a fixed IP address, once has booted up, by using:
$ ssh core@192.168.122.30
From the ran-ztp-workflow
directory, run:
$ ./bootstrap_ran_ztp_lab.sh
Once you run the bootstrapping script, just follow the installation process and debug issues by following the standard output of in the provided script. Take not that this may take a while to complete.
Additionally, you may debug issues also using the Hub console and/or the ArgoCD dashboard. To do so, just connect to the installation using shuttle and navigate to the following URL:
- SNO Hub Console: https://console-openshift-console.apps.hub.karmalabs.com
- RHACM Console: https://multicloud-console.apps.hub.karmalabs.com
- ArgoCD Dashboard: https://openshift-gitops-server-openshift-gitops.apps.hub.karmalabs.com
$ sshuttle -r root@<remote_lab_host> 192.168.122.0/24