Apps can be deployed using tensorkube deploy. This command provides many options to deploy your app. Sometimes you may want to use the same set of options for multiple deployments or you may want to keep the options in a file for future reference. In such cases, you can use a config file to declare the flags and use it to run tensorkube deploy.

you can use the --config-file flag to specify the path to the config file.

tensorkube deploy --config-file <path-to-config-file>

The config file should be a YAML file with the following structure. All keys below are optional. If not provided, the default values will be used.

gpus: 1
gpu_type: v100
cpu: 100.0
memory: 200.0
min_scale: 0
max_scale: 3
env: default
github_actions: false
secret:
  - secret_name_1
  - secret_name_2

You can also use cli flags along with the config file. The options in config.yaml take more precedence than cli flags.

tensorkube deploy --config-file <path-to-config-file> --gpus 2 --cpu 200.0