...
Create a folder named .devcontainer at the root of the repository.
Create a new file named devcontainer.json inside .devcontainer folder, and add the below code snippets with the appropriate options.
To use secrets in the devcontainer.json, create a secret under Settings → Secrets → Codespaces.
Use the created secret inside devcontainer.json as
"${localEnv:SECRET_NAME}"
Example Usage
Code Block |
---|
"features": { "ghcr.io/devcontainersroost-io/features/kubectl-helm-minikuberoost:1.0.0": {}, "ghcr.io/zb-io/roost-codespace/roostcontroller:1.0.0roost_server": "${localEnv:ROOST_SERVER}", "k8sroost_auth_versiontoken": "1.22.2${localEnv:ROOST_AUTH_TOKEN}", "vendork8s_version": "aws1.22.2", "aws_region": "ap-northeast-1", ... } } |
...
Options Id | Description | Type | Default Value | Required / optional | |||||
---|---|---|---|---|---|---|---|---|---|
awsroost_accessauth_key_idAws access key IDtoken | Roost Authorization Token | string | - | Requiredaws_secret_access_key | Aws secret access key | string | - | Required | |
user_email | User email address | string | - | Required | |||||
usernamealias | User Alias name for cluster | string | - | Required | roost_auth_token | Roost Authorization Token | string | 7234741d-c3ba-4de9-bfc0-07b7e73e1545 | optional |
vendor | Cloud vendor | string | aws | optional | |||||
k8s_version | Kubernetes version | string | 1.22.2 | optional | |||||
cluster_expires_in_expirationhours | Cluster expiry in Hrs | string | 1 | optional | |||||
num_workers | Number of worker nodes | string | 1 | optional | |||||
default_namespace | Default namespace | string | roost-codesapace | optional | |||||
aws_region | Aws region, to create cluster into | string | ap-northeast-1 | optional | |||||
disk_size | Disk size in GB | string | 30GB50 | optional | |||||
instance_type | Instance type | string | t3.smalllarge | optional | |||||
ami | AMI | string | ubuntu focal 20.04 | optional | |||||
entroost_server | Enterprise server IP | string | app.roost.ai | optional |
...