We administrate all our operations through the use of kubectl
.
Read up on the following materials,
kubectl
Installation Guide
To access the K8s cluster, you will need to have a k3s.yaml
credential file. It can be obtained by ssh into the master
node of the cluster, under the directory /etc/rancher/k3s/k3s.yaml
.
Once you have obtained the k3s.yaml
file, make the following modification,
After the modification, this file is ready for use. Update your shell to always use this file,
To confirm it working,
Notice that -n clouddesktop-prod
refers to the clouddesktop-prod k8s namespace
kubectl
Installation Guide
terraform
Installation Guide
AWS Credentials to AWS Route53
Access Key
Secret Key
First obtain the users repo from here.
Setup .env
file by filling in all required fields:
It's better to use an IAM user group
to create a new user
associated with the clouddesktop
user group. It will generate a access and secret key for you to put in the above file. The ingress IP is the ip address of the main node. Once everything is properly setup, do:
Setup terraform:
To under what each of these commands do under the hood, see here.
id
is the ID of the new user.
Warning: This will remove any persisted data!!
For user example
, modify the file example-clouddesktop/deployment.yaml
.
For detailed explanation of what units you can change it to, see here.
For detailed explanation of what units you can change it to, see here.
Note: Beware if we have enough free GPUs in the cluster
Note: Make sure the docker image is a CUDA enabled variant (ie. tb3-ros:v2.1.1-cuda
)
Warning: This will restart the cloud desktop container!!
To apply the previously changed values,
To restart a desktop, you need to delete and redeploy the desktop.
This will NOT lead to loss of data.