Skip to content

Configuration reference ​

All settings are environment variables starting with K10Y_.

Hub ​

Set these in .env, or in the hub service of docker-compose.yml.

VariableDefaultPurpose
K10Y_MODEagenthub for the hub (set in the compose file)
K10Y_DATABASE_URL—postgresql://user:password@host:5432/db (set in the compose file from POSTGRES_PASSWORD)
K10Y_SECRET_KEY—Encrypts stored tokens and keys. Keep it stable and backed up.
K10Y_ADMIN_USERadminFirst admin's username, used only when there are no users
K10Y_ADMIN_PASSWORDrandomFirst admin's password. If empty, a random one is printed in the hub log.
K10Y_SESSION_HOURS12Idle time before a session expires
K10Y_PUBLIC_URL—The hub's address, for links in alert messages
K10Y_ALERTS_ENABLEDtrueRun the alert engine
K10Y_TLStrue in composeServe HTTPS
K10Y_TLS_CERT, K10Y_TLS_KEY—Your own certificate and key. Without them, a self-signed certificate is created.
K10Y_TLS_DIR/data/tls in composeWhere the self-signed certificate is kept

Compose-only settings (in .env):

VariableDefaultPurpose
POSTGRES_PASSWORD—Database password
K10Y_HUB_PORT8443Port published on the host
K10Y_DATA_DIR./dataFolder for the database, certificate and backups
K10Y_BACKUP_EVERY_HOURS24Backup interval
K10Y_BACKUP_KEEP14Backups to keep
K10Y_IMAGEthe release imageOverride the hub image

Agent ​

Set in the agent's Deployment (install.yaml).

VariableDefaultPurpose
K10Y_TOKEN_SECRETk10y-agent in the installerRead the API token from this Secret, creating it if missing
K10Y_API_TOKEN—Use this token instead of a Secret
K10Y_CLUSTER_NAMEkubernetesDisplay name (the installer reads it from ConfigMap k10y-settings)
K10Y_CONTROL_ENABLEDfalse (true in install.yaml)Allow actions. Also needs the control RBAC role.
K10Y_PROTECTED_NAMESPACESkube-system (kube-system,k10y in the installer)Namespaces where actions, edits and shells are refused
K10Y_TLStrue in the installerServe HTTPS
K10Y_CORS_ORIGINSemptyBrowser origins allowed to call the agent directly. Leave empty: browsers go through the hub.
K10Y_METRICS_POLL_S5How often metrics-server is checked
K10Y_METRICS_RETENTION_S3600CPU and memory history kept in memory
K10Y_AUDIT_PATH/data/audit.jsonlThe agent's local action log
K10Y_LOG_LEVELinfoLog level

Free and open source. Kubernetes is a trademark of The Linux Foundation; k10y is not affiliated with it.