tdkserver init
Produce an editable input config folder for a tabsdata instance
tdkserver init \
--instance tabsdata \
--provider kminus \
--context docker-desktop \
--kubeconfig ~/.kube/config \
--current \
--namespace tabsdata \
--loglevel info \
--config tabsdata:pods.service.resources.memory=8Gi \
--requirements requirements.txt \
--details true \
--save true \
--yes true \
--accept-terms yes \
--verbose \
--keep-progress true
| Flag | Type | Required | Description |
|---|---|---|---|
--instance | string | Optional | Name of the instance whose editable input config folder is produced. Defaults to 'tabsdata'. On Windows, a 'kminus' instance is rejected before anything is written when the paths of its executables, built from the home folder, the user name and the instance name, would exceed the Windows path limit. |
--provider | kminus | eks | aks | gke | Optional | Provider of the cluster: 'kminus' for a development kminus cluster, 'eks' for AWS EKS, 'aks' for Azure AKS, 'gke' for Google GKE. When unspecified, the value from the active tabsdata session is taken; when no active tabsdata session is set, this argument is required. |
--context | string | Optional | Name of the kubeconfig context to use. Valid for every provider except 'kminus'. The context must reach a cluster run by the platform of --provider, as told by the provider ID of its nodes; a context of another platform is rejected. Mutually exclusive with --current. Composes with --kubeconfig. |
--kubeconfig | string | Optional | Path to a kubeconfig file. Valid for every provider except 'kminus'. When unspecified, the file pointed to by the KUBECONFIG environment variable, or ~/.kube/config, is used. Composes with --context and --current. |
--current | flag | Optional | Use the current-context entry of the kubeconfig file. Valid for every provider except 'kminus'. As with --context, it must reach a cluster run by the platform of --provider. Mutually exclusive with --context. Composes with --kubeconfig. |
--namespace | string | Optional | Namespace for the instance. Valid for every provider except 'kminus'. Overrides the namespace defined in the kubeconfig context. When neither is set, the kubernetes default namespace is used. |
--loglevel | trace | debug | info | warn | error | Optional | Log level for the kminus orchestrator and pod runner. Defaults to 'debug'. Only valid with the 'kminus' provider. Example: tdkserver init --provider kminus --loglevel info |
--config | string | Optional | Sets a value of the instance configuration. The value is written into the config files under 'init/input/configs' of the new instance before anything reads them. Repeat the option to set several values. Each value can be set only once, even with the same content. Every setting is checked before the instance folder is created, so an invalid setting leaves nothing behind. A setting has the form ADDRESS=VALUE, where ADDRESS names what to set in one of three ways. By placeholder category: Config files hold placeholders such as '${{literal:tdk_database_host}}' or '${{secret:postgres_system_password}}'. The word before the colon is the placeholder kind (literal, literalAuto, secret or secretAuto can be set), and the word after it is the category. Naming the category sets every placeholder of that category, in every config file at once: tdk_database_host=db.internal The kind can be prefixed to the category, and it must be when two kinds share one category: secret:postgres_system_user=tabsdata By file and key path: Any final value of a config file, placeholder or not, is addressed by the file name (with or without '.yaml'), a colon, and the path of keys down to the value, joined by dots: tabsdata:pods.service.resources.cpu=4 A list item is selected by its position, starting at 0, or by the value of one of its keys: tabsdata:pods.service.placement.tolerations[0].effect=NoExecute tabsdata:pods.service.placement.tolerations[operator=Exists].effect=NoExecute A key that contains dots is quoted, as in 'section."key.with.dots".value'. From a settings file: '@FILE' reads settings from a YAML file. It may be a list of 'ADDRESS=VALUE' strings, a mapping of addresses to values, or a mapping with two sections: 'files', with the keys of each config file nested as in the file itself, and 'values', a mapping of addresses to values: files: tabsdata: pods: service: resources: cpu: "4" values: tdk_database_host: db.internal secret:postgres_system_password: env:POSTGRES_PASSWORD Only values that already exist can be set: never new keys, and never a key that holds other keys or a list. There are two exceptions. New environment variables can be added under 'tabsdata:pods.global.envs' for every pod and function: tabsdata:pods.global.envs.MY_API_KEY=env:MY_API_KEY and new keys can be added to any mapping its config schema declares open, such as the 'options' of a storage mount: apiserver.storage:storage.mounts[id=ROOT].options.aws_region=eu-west-1 A value the schema declares secret can be set even where it holds a placeholder the system resolves, such as the 'uri' of a kminus storage mount. Their values are written as strings. A string value replaces a string, while numbers and booleans replace only values of their own type. A VALUE starting with 'env:' is read from that environment variable of this machine, so secrets need not be written in any file of yours. To combine variables with fixed text, wrap each variable in '${...}': 'env:${BUCKET_URI}/root' reads BUCKET_URI and appends '/root'. 'val:' keeps a value that literally starts with 'env:'. Secret values end up in the instance input config files. Examples: tdkserver init --provider gke --config tdk_database_host=db.internal --config secret:postgres_system_password=env:POSTGRES_PASSWORD tdkserver quickstart --config tabsdata:pods.service.resources.memory=8Gi tdkserver quickstart --config anthropic-key=env:ANTHROPIC_API_KEY tdkserver quickstart --config tabsdata:pods.global.envs.MY_API_KEY=env:MY_API_KEY tdkserver quickstart --config @settings.yaml |
--requirements | string | Optional | Complementary packages for every tabsdata base virtual environment, in pip requirements format. The file is checked to be a valid pip requirements file before the instance folder is created, and its requirements are added to the requirements-*.txt init assets of the new instance, after the ones those already hold, so the virtual environments are built with them when the instance is created. Nothing else is checked: a package that cannot be installed fails the creation. Example: tdkserver quickstart --requirements drivers.txt |
--details | true | false | Optional | Show the summary of resolved values before initializing the instance. Defaults to 'true'. Pass '--details false' to skip the summary. |
--save | true | false | Optional | Copy the cluster settings files (kubeconfig, etc.) into the instance folder so the instance is self-contained. |
-y, --yes | true | false | Optional | Skip the interactive confirmation prompt and proceed immediately. |
--accept-terms | string | Optional | Accept or decline the license terms without interactive prompt [y/yes/n/no]. |
--verbose | flag | Optional | Show the output of each step that this command runs. |
--keep-progress | true | false | Optional | Keep the progress line of each step that this command runs, instead of clearing it when the step finishes [true/false]. Defaults to true. |