Overview
flytectl config manages the flytectl configuration file. The config file tells flytectl where to find FlyteAdmin and how to authenticate.
~/.flyte/config.yaml
The config file is searched in the following order:
- Path from
--configflag FLYTECTL_CONFIGenvironment variable~/.flyte/config.yaml- Current working directory
/etc/flyte/config
Subcommands
| Subcommand | Description |
|---|---|
config init | Generate a config file in ~/.flyte/config.yaml |
config validate | Validate the currently loaded config |
config discover | Print the config search paths |
config docs | Print documentation for all config sections |
config init
Generate a starter config file at~/.flyte/config.yaml.
| Flag | Description |
|---|---|
--host | FlyteAdmin gRPC endpoint |
--console | Console endpoint if different from --host |
--insecure | Disable TLS verification |
--force | Overwrite existing config file without confirmation |
config validate
Validate the currently loaded configuration.| Flag | Description |
|---|---|
--strict | Fail if any keys in the config file are unrecognized |
Config file reference
The config file is a YAML document. The most important top-level sections areadmin, storage, logger, and files.
Minimal config
Full annotated config
Storage config
Required when using fast registration or when flytectl needs to access object storage directly.Logger config
Config examples by environment
- Local demo
- Remote cluster (TLS)
- Remote cluster (client credentials)
- With S3 storage
Config written automatically by
flytectl demo start:Environment variables
| Variable | Description |
|---|---|
FLYTECTL_CONFIG | Override the default config file path |
Global admin flags
All flytectl commands inherit these admin connection flags, which correspond to fields in theadmin section of the config file:
| Flag | Default | Description |
|---|---|---|
--admin.endpoint | "" | FlyteAdmin gRPC endpoint |
--admin.insecure | false | Disable TLS |
--admin.authType | ClientSecret | OAuth2 flow |
--admin.clientId | flytepropeller | OAuth2 client ID |
--admin.clientSecretLocation | /etc/secrets/client_secret | Path to client secret file |
--admin.pkceConfig.timeout | 2m0s | PKCE browser session timeout |
--admin.maxRetries | 4 | gRPC max retries |
--admin.perRetryTimeout | 15s | gRPC per-retry timeout |
--admin.caCertFilePath | "" | Custom CA certificate file |