Usage K2HDKC Helm Chart Usage

RANCHER with Helm Chart

The K2HDKC Helm Chart is a Helm Chart for building a K2HDKC cluster using Helm(The package manager for Kubernetes) in a kubernetes environment.
This K2HDKC Helm Chart can be used as RANCHER Helm Chart from RANCHER.

Overview

You can register K2HDKC Helm Chart as RANCHER Helm Chart into the repository in the RANCHER.
Then you can easily build up your K2HDKC cluster from the chart registered in the RANCHER repository.

K2HDKC Helm Chart is published as a Chart repository at K2HDKC Helm Chart repository and Artifact Hub.

Using the RANCHER UI, you can register the K2HDKC Helm Chart published in Artifact Hub as a repository.
The source code for the K2HDKC Helm Chart is available on k2hdkc_helm_chart - Github.

Using Helm command

The K2HDKC Helm Chart can be used as a regular Helm Chart.
If you want to use helm command for K2HDKC Helm Chart, please refer to here.

Use with RANCHER

The procedure for using K2HDKC Helm Chart RANCHER which is multi-cluster orchestration platform for kubernetes is explained below.

The following explanation assumes that the RANCHER environment has been set up.
Please refer to RANCHER for the setup.

Cluster in RANCHER

Determine the cluster of RANCHER on which to deploy the K2HDKC cluster by K2HDKC Helm Chart.
You create a cluster as needed.

The following figure logs in to the RANCHER UI and displays a list of clusters.

RANCHER - top

The following steps will be described using mycluster.

Add repository

Select the RANCHER cluster(mycluster) to display the cluster setting page.
Select Apps & Marketplace > ` Repositories` in the left pane to display the content shown below.

RANCHER - Repositories top
(In the figure above, the same Antpickax product K2HR3 Helm Chart is already registered.)

Click the Create button on this page to register the K2HDKC Helm Chart as a repository.

Click the Create button to display the Repository: Create page shown below.

RANCHER - Repositories add

In order to register K2HDKC Helm Chart as a repository, set the values in the following items(required).

After setting the above values, click the Create button in this page.

RANCHER - Repositories added

Now, as shown above K2HDKC Helm Chart has been registered as a RANCHER repository.

Chart installation

Then install K2HDKC Helm Chart.

Select Apps & Marketplace > Charts in the left pane to see a list of available Charts.

RANCHER - Chart top

You can find the K2HDKC in this Chart list.

Clicking on the K2HDKC in the list will take you to a page where you can install the K2HDKC Helm Chart.

RANCHER - Chart install top

Click the Install button in the upper right to next step.

Chart Install : Step 1

The Install: Step 1 page is displayed as shown below.

RANCHER - Chart install step1

In this step 1, enter the Name of the K2HDKC cluster you want to install.
In the above example, myk2hdkc is entered for Name.

After entering Name, click the Next button.

Chart Install : Step 2

The Install: Step 2 page is displayed as shown below.

RANCHER - Chart install step2-1

In this step, set the following items:

Each setting items is explained below.

K2HR3 System to be used

On the Install: Step 2 page, select Edit Option and then K2HR3 System to use from the list.

RANCHER - Chart install step2-1

A K2HR3 System is required to build a K2HDKC cluster using the K2HDKC Helm Chart.
In this setting, enter the information of the K2HR3 System to be used.

The K2HR3 System to be used can be easily built using the K2HR3 Helm Chart provided by the same AntPickax.
As with K2HDKC Helm Chart, K2HR3 Helm Chart can also be used to build a K2HR3 System from RANCHER.
Please refer to K2HR3 Helm Chart with RANCHER to build the K2HR3 System before installing this K2HDKC cluster.

In this setting, enter the following required items:

Cluster(install) name of K2HR3 system

In the K2HR3 Helm Chart with RANCHER procedure, specify the Name of the K2HR3 System that you specified when you installed the K2HR3 System.
In the example of K2HR3 Helm Chart with RANCHER, myk2hr3 is specified.

Unscoped Token for K2HR3 system

Sign in to the K2HR3 Web Application of your K2HR3 system and you specify the Unscoped Token of the user to this item.

You can get the Unscoped Token by following the steps below:

The Account Information dialog is shown below:
RANCHER - K2HR3 Unscoped Token

After entering the required items, the setting of this K2HR3 System to use item is completed.

K2HDKC Cluster Server

On the Install: Step 2 page, select Edit Option and then K2HDKC Client from the list.

RANCHER - Chart install step2-2

In this setting, enter the information for the K2HDKC Cluster Server.
For this setting, enter the following items, but they are not required.

Please refer to the description of each item and set the value of the item you want to change.

After entering the required items, the setting of this K2HDKC Server item is completed.

K2HDKC Cluster Client(Slave)

On the Install: Step 2 page, select Edit Option and then K2HR3 REST API from the list.

RANCHER - Chart install step2-3

In this setting, enter the information for the K2HDKC Cluster Client(Slave).
For this setting, enter the following items, but they are not required.

Please refer to the description of each item and set the value of the item you want to change.

This setting has some items for the user’s client program which runs on container.
If you set these default values(no edit), the container for the K2HDKC client will do nothing.
If you need to run your client program as a K2HDKC client on the container, you can deploy and launch your program by setting these items.
The items for setting the user’s client program are Image for K2HDKC Client(Slave), Command for K2HDKC Client and Args for K2HDKC Client.

For each item, refer to here and set the value.

In this explanation, do not enter (no edit) the above values and proceed with the defaults.

After entering the required items, the setting of this K2HDKC Client item is completed.

Chart installed

The installation of K2HDKC Helm Chart will start, and when it is completed, the following screen(Apps & Marketplace > Installed Apps) will be displayed.

RANCHER - Chart installed

If you see the Deployed badge, you have successfully installed your K2HDKC cluster.

StatefulSets

Displays the StatefulSets installed by the K2HDKC Helm Chart.
In the left pane, select Workload > StatefulSets to confirm.

RANCHER - Chart installed - StatefulSets

If you see slvpod-myk2hdkc and svrpod-myk2hdkc(case of Name=myk2hdkc) and the Active badge on the both of them, then StatefulSets is successful.

Pods

Displays the Pods installed by the K2HDKC Helm Chart.
In the left pane, select Workload > Pods to confirm.

RANCHER - Chart installed - Pods

If you see A total of 4 pods, slvpod-myk2hdkc-[0,1] and svrpod-myk2hdkc-[0,1](case of Name=myk2hdkc) and the Running badge on the both of them, then Pods is successful.

Check K2HDKC cluster

Check the operation of the installed K2HDKC cluster.

You can use the RANCHER UI to check the operation.
The following procedure launches a shell on the RANCHER UI, and the shell runs in the client(slave) container which was built up.

Run Shell

First, select one pod of the started K2HDKC Client(Slave) and display its contents.
From the Pods list view above, click one of the pod names(slvpod- <name>-<number>) for the K2HDKC Client(Slave).
The following example displays the contents of slvpod-myk2hdkc-0.

RANCHER - Chart check - container list

From the above container list, select the container(slvk2hdkc-<name>) for executing the client program.
Click the button to the right of this container and select Execute Shell from the menu.

RANCHER - Chart check - execute shell

When you select the menu above, the shell screen of the container will be displayed as shown in the screen below.
Make sure you see the shell prompt(/ # ) at the bottom of the screen.

RANCHER - Chart check - execute shell

After this, run k2hdkclinetool on the shell and check the operation of the K2HDKC Cluster.

k2hdkclinetool Test

After the k2hdkclinetool runs, execute the following k2hdkclinetool command to check the status of the K2HDKC cluster, the status of the CHMPX cluster and read/write data.
Please refer to here for how to use k2hdkclinetool.

As above, if there is no problem in the state of the K2HDKC cluster and reading/writing data, the K2HDKC cluster has started normally.

Let’s up K2HDKC cluster

Now you knew how to install a K2HDKC cluster using RANCHER and K2HDKC Helm Chart.

In the above example, we installed the K2HDKC cluster by setting only the required items, but we can customize it further.
If you want to customize something other than what is shown in Install: Step 2, you can select Edit YAML and edit the value of values.yaml in K2HDKC Helm Chart directly.

RANCHER - Chart - edit yaml

The values ​​you can change are the same as when customizing the K2HDKC Helm Chart using from the helm command.
For the definition and default value of each variable, refer to K2HDKC Helm Chart Option.

As described above, if you use K2HDKC Helm Chart as RANCHER Helm Chart in RANCHER, you can easily install a K2HDKC cluster.

Usage K2HDKC Helm Chart Usage