Install Matlab Helm Chart on Kubernetes for Linux

312

In this step, we will install the matlab helm chart on remote icekube Kubernetes cluster using Linux bash shell.  So, be ready for the next adventure interacting with command line terminal.

Step: Launch Bash shell and switch to the required directory.

Switch to the .helm directory for the given repository: Path for the folder is

matlab_setup_kubernetes-main->repository->.helm

Switch to .helm directory
Switch to .helm directory

Step: Install Helm chart

We have to name the hell chart before installing, use the combination of your first name and 8 digit unique number to name your helm chart. We are doing this because there are so many helm charts installed on the cluster by different users, if we accidentally use the same name, it will not install the helm chart. Also, it will help us to generate a unique personal weblink for our matlab.

Generate an eight-digit unique number.

Generate a 8 digit unique number from this link or any other source on web which you feel comfortable. For example, you generate an 8-digit unique number “36718160” use it with your first name as a combination. For example, first name is johnny and the unique number “36718160”, then the name of the helm chart you have to use johnny36718160

 

Note

Write down your unique name. Do not forget it, in case first name on the cluster matches with someone, you will get confused.

Check Kubernetes context

We have to use icekube context otherwise we will install helm chart accidentally on local environment.

Command to switch from existing context to icekube context with ltu-default namespace

$ kubectl config set-context icekube --namespace=ltu-default
                   OR
$ kubectl config use-context icekube 
$ kubectl config set-context --current --namespace=ltu-default

 

Command to switch from existing context to another remote context with namespace
Command to switch from existing context to another remote context with namespace

 

Command to list the current context used.

$ kubectl config current-context

 

Command to check the current context used.
Command to check the current context used.

 

Install Helm Chart

Once you are sure that you have switched to icekube context you can proceed installing helm chart. You need to open bash shell and switch to the .helm directory of the extracted project folder.

The complete path of the .helm folder is matlab_setup_kubernetes-main->repository->.helm

Switch to .helm directory
Switch to .helm directory in the Repository

We have already configured the various files required. Now, use the unique combination of first name along with 8 random digits you generated.

For example: In this case, it is sumit36718160

Use the below command along with the unique name and giving file path to values_icekube.yaml which is located under the current directory.

$ helm install --debug sumit36718160  ./ -f ./values_icekube.yaml

 

Install Helm chart for Matlab using unique name for your pod
Install Helm chart for Matlab using unique name for your pod

You will get a message in the end that Matlab is installed.

Matlab is Installed
Matlab is Installed

To view the weblink generated for your matlab setup, you can simply view it under the ingress section when you install the helm chart.

Weblink for your matlab setup
Weblink for your matlab setup

Step: Check the status of the pod 

To view whether your helm chart is installed and deployed or not just simply use the below command.

List all helm charts Installed

$ helm list

 

List of Helm Charts Installed.
List of Helm Charts Installed.

To view all the resources

 

$ kubectl get all