arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

users.md

hashtag
Requirements

  • kubectl Installation Guidearrow-up-right

  • terraform

  • AWS Credentials to AWS Route53

    • Access Key

    • Secret Key

hashtag
Setup

First obtain the users repo from .

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:

hashtag
Common Operations

To under what each of these commands do under the hood, see .

hashtag
Add a new user

id is the ID of the new user.

hashtag
Delete a user

Warning: This will remove any persisted data!!

hashtag
Change resources allocation for user

For user example, modify the file example-clouddesktop/deployment.yaml.

hashtag
To increase minimum resource

For detailed explanation of what units you can change it to, see .

hashtag
To increase maximum resource limit

For detailed explanation of what units you can change it to, see .

hashtag
Add 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)

hashtag
Apply changes

Warning: This will restart the cloud desktop container!!

To apply the previously changed values,

hashtag
Restarting a Desktop

To restart a desktop, you need to delete and redeploy the desktop.

This will NOT lead to loss of data.

Setup Instructions
Installation Guidearrow-up-right
herearrow-up-right
here
herearrow-up-right
herearrow-up-right
mv .env.sample .env
export $(make env)
terraform init
make add-user id=example
make delete-user id=example
resources:
  requests:  # increase minimum to at least 4 cores
-   cpu: 2
+   cpu: 4
    memory: 2Gi
resources:
  limits: # increase to maximum 16GB of ram
    cpu: 8
-   memory: 8Gi
+   memory: 16Gi
resources:
  limits: # increase to maximum 16GB of ram
    cpu: 8
    memory: 8Gi
+   nvidia.com/gpu: 1
kubectl apply -k example-clouddesktop
kubectl delete -k example-clouddesktop

kubectl apply -k example-clouddesktop