users.md
Requirements
kubectlInstallation GuideterraformInstallation GuideAWS Credentials to AWS Route53
Access Key
Secret Key
Setup
First obtain the users repo from here.
Setup .env file by filling in all required fields:
mv .env.sample .envIt'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:
export $(make env)Setup terraform:
terraform initCommon Operations
To under what each of these commands do under the hood, see here.
Add a new user
id is the ID of the new user.
make add-user id=exampleDelete a user
Warning: This will remove any persisted data!!
make delete-user id=exampleChange resources allocation for user
For user example, modify the file example-clouddesktop/deployment.yaml.
To increase minimum resource
For detailed explanation of what units you can change it to, see here.
resources:
requests: # increase minimum to at least 4 cores
- cpu: 2
+ cpu: 4
memory: 2GiTo increase maximum resource limit
For detailed explanation of what units you can change it to, see here.
resources:
limits: # increase to maximum 16GB of ram
cpu: 8
- memory: 8Gi
+ memory: 16GiAdd GPU support
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)
resources:
limits: # increase to maximum 16GB of ram
cpu: 8
memory: 8Gi
+ nvidia.com/gpu: 1Apply changes
Warning: This will restart the cloud desktop container!!
To apply the previously changed values,
kubectl apply -k example-clouddesktopRestarting a Desktop
To restart a desktop, you need to delete and redeploy the desktop.
This will NOT lead to loss of data.
kubectl delete -k example-clouddesktop
kubectl apply -k example-clouddesktopLast updated
Was this helpful?
