The Ins and Outs of Augmented Reality

is very fun to play with but when you go deeper into the more technical stuff, it gets a lot more complicate. I learned that the hard way. In this article, I’m going to explain the complicated stuff…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Patterns for importing clusters into an IBM Multicloud Manager hub cluster

With the release of IBM Multicloud Manager 3.2.0, there are mainly two patterns for connecting a managed-cluster to a hub-cluster. In this article, I want to illustrate those two patterns and then offer up some simple tools to help ensure this process is always reliable!

The Hub cluster

The hub runs the microservice components that allow for managing multiple clusters. The hub must exist before you can import a managed-cluster.

The Managed cluster

Managed-clusters run the Klusterlet application. The Klusterlet is the agent that is installed in a Kubernetes cluster, making it a managed-cluster. The Klusterlet conveys and receives information from the hub-cluster.

Pattern 1

In this pattern, the hub-cluster and the managed-cluster have already been installed as IBM Cloud Private clusters. Also, these clusters are set-up using self-signed certificates.

The kubeconfig for the managed-cluster is retrieved and passed to the cloudctl import command to import the managed-cluster into the hub. The kubeconfig data flows from the managed-cluster to the hub. See the following example:

The script above can be used to import an existing IBM Cloud Private cluster into a hub. The script takes admin login credentials for both the hub-cluster and the cluster to be managed. The namespace name that will reference the managed-cluster on the hub will be derived from the managed-cluster’s cluster name.

Note that in the script, we update the generated kubeconfig to allow for insecure connection by skipping the TLS validation step. This is because our clusters are setup with self-signed certificates.

This is an example of running the script with arguments:

Pattern 2

From managed-cluster, import into hub

In this pattern, the kubeconfig information of the hub is retrieved and used to import the managed-cluster into the hub. The kubeconfig data flows from the hub to the managed-cluster.

Typically, this pattern is used when installing a new IBM Cloud Private cluster. The kubeconfig is retrieved and stored in the following path:

/opt/ibm/cluster/klusterlet-bootstrap.kubeconfig

To enable the Klusterlet to start up and read the kubeconfig of the hub during install time, the multicluster-endpoint service needs to be enabled in config.yaml file as you see in the following example:

If you are deploying IBM Cloud Private with one of the community Terraform templates, you can follow this pattern by updating this the icp-preinstall template variable. This will generate the klusterlet-bootstrap.kubeconfig file.

Add a comment

Related posts:

Het vragenuurtje

Houdt u van gamen? Jazeker Wat is uw lievelingskleur? Groen Wat is uw lievelingseten? Bifteki. Zoek maar is op! Heeft u wel eens snoep gestolen? Nee, maar wel een gum toen ik heel jong was en daar…