Files
open-cluster-management/solutions/setup-dev-environment
Tomer Figenblat acd67572d7 Small fixes to current documentation and manifests (#30)
* bumped cluster.open-cluster-management.io to v1beta1

using v1alpha1 displays deprection warnings

Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>

* replaced the image used for the demo to nginx-lego

the previous one nginx-ingress is marked as deprecated.

Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>

* update dev env script, added wait param to clusteradm accept and display managed clusters

Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>

* update the helm chart deploy readme

Signed-off-by: Tomer Figenblat <tfigenbl@redhat.com>
2022-02-22 09:32:48 -05:00
..
2021-10-25 13:48:51 +00:00

Setup dev environment by kind

This scripts is to setup an OCM developer environment in your local machine with 3 kind clusters. The script will bootstrap 3 kind clusters on your local machine: hub, cluster1, and cluster2. The hub is used as the control plane of the OCM, and the other two clusters are registered on the hub as the managed clusters.

Prerequisite

kind must be installed on your local machine. The Kubernetes version must be >= 1.19, see kind user guide for more details.

Download and install clusteradm. For Linux OS, run the following commands:

wget -qO- https://github.com/open-cluster-management-io/clusteradm/releases/latest/download/clusteradm_linux_amd64.tar.gz | sudo tar -xvz -C /usr/local/bin/

sudo chmod +x /usr/local/bin/clusteradm

Setup the clusters

Run ./local-up.sh, you will see two clusters registered on the hub cluster.

NAME       HUB ACCEPTED   MANAGED CLUSTER URLS      JOINED   AVAILABLE   AGE
cluster1   true           https://127.0.0.1:45325   True     True        116s
cluster2   true           https://127.0.0.1:45325   True     True        98s