Skip to content

~/.dstack/server/config.yml

YAML reference

ServerConfig

Property Description Type Default value
projects List[ProjectConfig] required

ProjectConfig

Property Description Type Default value
name str required
backends Union[AWSConfigInfoWithCreds, AzureConfigInfoWithCreds, GCPConfigInfoWithCreds, LambdaConfigInfoWithCreds, TensorDockConfigInfoWithCreds, VastAIConfigInfoWithCreds, KubernetesConfig] required

AWSConfig

Property Description Type Default value
type Literal['aws'] aws
regions Optional[List[str]] None
vpc_name Optional[str] None
creds Union[AWSAccessKeyCreds,AWSDefaultCreds] required

AWSDefaultCreds

Property Description Type Default value
type Literal['default'] default

AWSAccessKeyCreds

Property Description Type Default value
type Literal['access_key'] access_key
access_key str required
secret_key str required

AzureConfig

Property Description Type Default value
type Literal['azure'] azure
tenant_id str required
subscription_id str required
regions Optional[List[str]] None
creds Union[AzureClientCreds,AzureDefaultCreds] required

AzureDefaultCreds

Property Description Type Default value
type Literal['default'] default

AzureClientCreds

Property Description Type Default value
type Literal['client'] client
client_id str required
client_secret str required
tenant_id Optional[str] None

DataCrunchConfig

Property Description Type Default value
type Literal['datacrunch'] datacrunch
regions Optional[List[str]] None
creds DataCrunchAPIKeyCreds required

DataCrunchAPIKeyCreds

Property Description Type Default value
type Literal['api_key'] api_key
client_id str required
client_secret str required

GCPConfig

Property Description Type Default value
type Literal['gcp'] gcp
project_id str required
regions Optional[List[str]] None
creds Union[GCPServiceAccountCreds,GCPDefaultCreds] required

GCPDefaultCreds

Property Description Type Default value
type Literal['default'] default

GCPServiceAccountCreds

Property Description Type Default value
type Literal['service_account'] service_account
filename str required
data Optional[str] None

LambdaConfig

Property Description Type Default value
type Literal['lambda'] lambda
regions Optional[List[str]] None
creds LambdaAPIKeyCreds required

LambdaAPIKeyCreds

Property Description Type Default value
type Literal['api_key'] api_key
api_key str required

TensorDockConfig

Property Description Type Default value
type Literal['tensordock'] tensordock
regions Optional[List[str]] None
creds TensorDockAPIKeyCreds required

TensorDockAPIKeyCreds

Property Description Type Default value
type Literal['api_key'] api_key
api_key str required
api_token str required

VastAIConfig

Property Description Type Default value
type Literal['vastai'] vastai
regions Optional[List[str]] None
creds VastAIAPIKeyCreds required

VastAIAPIKeyCreds

Property Description Type Default value
type Literal['api_key'] api_key
api_key str required

KubernetesConfig

Property Description Type Default value
type Literal['kubernetes'] kubernetes
kubeconfig KubeconfigConfig required
networking Optional[KubernetesNetworkingConfig] None

KubeconfigConfig

Property Description Type Default value
filename str required
data str required

KubernetesNetworkingConfig

Property Description Type Default value
ssh_host Optional[str] None
ssh_port Optional[int] None