Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/flyteorg/flyte/llms.txt

Use this file to discover all available pages before exploring further.

Overview

flytectl config manages the flytectl configuration file. The config file tells flytectl where to find FlyteAdmin and how to authenticate.
flytectl config <subcommand> [flags]
Default config file location: ~/.flyte/config.yaml The config file is searched in the following order:
  1. Path from --config flag
  2. FLYTECTL_CONFIG environment variable
  3. ~/.flyte/config.yaml
  4. Current working directory
  5. /etc/flyte/config

Subcommands

SubcommandDescription
config initGenerate a config file in ~/.flyte/config.yaml
config validateValidate the currently loaded config
config discoverPrint the config search paths
config docsPrint documentation for all config sections

config init

Generate a starter config file at ~/.flyte/config.yaml.
# Generate config for a local sandbox/demo cluster
flytectl config init

# Generate config for a remote cluster
flytectl config init --host flyte.myexample.com

# Remote cluster with insecure (no TLS) connection
flytectl config init --host flyte.myexample.com --insecure

# Remote cluster with a separate console endpoint
flytectl config init --host flyte.myexample.com --console console.myexample.com

# Overwrite an existing config without confirmation
flytectl config init --host flyte.myexample.com --force
Flags:
FlagDescription
--hostFlyteAdmin gRPC endpoint
--consoleConsole endpoint if different from --host
--insecureDisable TLS verification
--forceOverwrite existing config file without confirmation

config validate

Validate the currently loaded configuration.
flytectl config validate

# Strict mode: fail if any config key does not map to a registered section
flytectl config validate --strict
Flags:
FlagDescription
--strictFail 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 are admin, storage, logger, and files.

Minimal config

admin:
  endpoint: dns:///localhost:30081
  insecure: true
  authType: Pkce

Full annotated config

admin:
  # gRPC endpoint of FlyteAdmin.
  # Use dns:/// prefix for DNS-based load balancing.
  endpoint: dns:///flyte.myexample.com

  # Set to true only for local development or sandbox deployments.
  insecure: false

  # OAuth2 flow. Options: ClientSecret, Pkce, ExternalCommand
  authType: Pkce

  # Client credentials (used with authType: ClientSecret)
  clientId: flytepropeller
  clientSecretLocation: /etc/secrets/client_secret
  clientSecretEnvVar: ""

  # PKCE settings
  pkceConfig:
    timeout: 2m0s
    refreshTime: 5m0s

  # TLS certificate (optional)
  caCertFilePath: ""

  # Retry and timeout settings
  maxRetries: 4
  perRetryTimeout: 15s
  maxBackoffDelay: 8s

Storage config

Required when using fast registration or when flytectl needs to access object storage directly.
storage:
  # Backend type: s3, minio, local, mem, stow
  type: s3

  # S3 bucket name
  container: my-flyte-bucket

  connection:
    region: us-east-1
    # Auth type: iam (default) or accesskey
    auth-type: iam
    access-key: ""
    secret-key: ""
    endpoint: ""
    disable-ssl: false

  limits:
    maxDownloadMBs: 2

Logger config

logger:
  # Minimum log level (0=panic, 1=fatal, 2=error, 3=warn, 4=info, 5=debug)
  level: 3
  formatter:
    type: json
  show-source: false
  mute: false

Config examples by environment

Config written automatically by flytectl demo start:
admin:
  endpoint: dns:///localhost:30081
  insecure: true
  authType: Pkce

Environment variables

VariableDescription
FLYTECTL_CONFIGOverride the default config file path

Global admin flags

All flytectl commands inherit these admin connection flags, which correspond to fields in the admin section of the config file:
FlagDefaultDescription
--admin.endpoint""FlyteAdmin gRPC endpoint
--admin.insecurefalseDisable TLS
--admin.authTypeClientSecretOAuth2 flow
--admin.clientIdflytepropellerOAuth2 client ID
--admin.clientSecretLocation/etc/secrets/client_secretPath to client secret file
--admin.pkceConfig.timeout2m0sPKCE browser session timeout
--admin.maxRetries4gRPC max retries
--admin.perRetryTimeout15sgRPC per-retry timeout
--admin.caCertFilePath""Custom CA certificate file