Connect to an interactive shell
Connect to an interactive shell.
Supported Databases: postgres, mariadb, mongodb, redis
kubedb exec [flags]
-c, --command string Run a single command and exit
--create-job Create a job that will run the database client (default true)
--create-network-policy Creates a network policy allowing the KubeDB job to talk to the database. (default true)
-d, --dbname string Database name to use (default discovered)
-h, --help help for exec
--job-pod-labels stringToString Pod labels to add to the job (default [])
--opts string Additional options to pass to the database client command
-p, --password string Database password (default discovered)
--port uint16 Database port (default discovered)
-U, --username string Database username (default discovered)
--context string Kubernetes context name
--dialect string Database dialect. (one of postgres, mariadb, mongodb, redis, meilisearch) (default discovered)
--healthchecks-ping-url string Notification handler URL
--kubeconfig string Paths to the kubeconfig file (default "$HOME/.kube/config")
--log-format string Log format (one of auto, color, plain, json) (default "auto")
--log-level string Log level (one of trace, debug, info, warn, error) (default "info")
-n, --namespace string Kubernetes namespace
--pod string Perform detection from a pod instead of searching the namespace
- kubedb - Painlessly work with databases in Kubernetes.