Changing Parameters in Various Config Files

360

In this article, we will configure and edit various parameters in existing config files which we have downloaded from the github repository.

We have already extracted the zip file in our previous post just open the folder in the Visual Code editor by launching Visual code.

Step: Launch Visual code editor and open the extracted zip folder.

Open the extracted folder in Visual Code Editor
Open the extracted folder in Visual Code Editor

Once you open the folder you will three folders on the left side data, repository, vscode-server.

Displaying folder structure on left side.
Displaying folder structure on left side.

Step: Reserve CPU, Memory and GPU.

To reserve CPU, RAM and GPU resources on Icekube Kubernetes cluster at RI.SE we need to fist edit the three parameters in the file values_icekube.yaml, the complete path of the file is repository->.helm->values_icekube.yaml

In the below screenshot, we can see we have reserved 1 CPU, 1 GPU and 12GB memory for our matlab setup. About advance requirement please consult the experience user in the group.

Edit the parameters in values_icekube.yaml to book the resources
Edit the parameters in values_icekube.yaml to book the resources

 

Step: Reserve Volume

Now, we need to state PVC size, which refers to PersistentVolumeClaim. It is an external storage which is attached to the pod, where we can store the data. We have used following mount points for the PVC, mountPath: /home/vscode/workspace and mountPath: /home/vscode/workspace/data

You need to save all your data in these mount points. So, in case you uninstall your existing pod then your PVC (storage) stays intact and you can reconnect to it when you install your setup again with the same unique name you have used.

In the screenshot below, we have configured 100 GB for PVC storage.

Edit the parameters in volume-icekube.yaml to state the amount of PVC required
Edit the parameters in volume-icekube.yaml to state the amount of PVC required