Skip to content

Environment

The environment variables

KUBEE_USER_NAME: the connection username (default to default) Used in the creation of a config file

KUBEE_CLUSTER_NAME defines the default cluster name. You can set it also via the -c or --cluster command line option.

The cluster name is used:

  • in connection
  • in the detection of a cluster project

KUBEE_CLUSTERS_PATH defines a list of directory path where you could find cluster definitions (environment, values and inventory file)

Example

Terminal window
export KUBEE_CLUSTERS_PATH="$HOME/argocd/clusters:$HOME/argocd-2/clusters"

The $KUBEE_CHARTS_PATH environment variable defines a path environment variable where each path is a directory that contains kubee charts.

It should be set in your .bashrc

Example:

Terminal window
export KUBEE_CHARTS_PATH=$HOME/my-kubee-charts:$HOME/my-other-kubee-charts

The image used by kubee-shell when asking for a shell in a busybox.

Default to ghcr.io/gerardnico/busybox:latest

Terminal window
export KUBEE_BUSYBOX_IMAGE=ghcr.io/gerardnico/busybox:latest

KUBEE_CONNECTION_NAMESPACE_DEFAULT: the default connection namespace.

KUBEE_PASS_HOME: the home directory in pass (default to kubee) for the location of the connection secrets

Connection Namespace Order of precedence: In order, the connection namespace value used is:

The connection context name in the config file is derived as $KUBEE_USER@$KUBEE_CLUSTER/$KUBEE_CONNECTION_NAMESPACE

  • client-certificate-data : $KUBEE_PASS_HOME/users/$KUBEE_USER_NAME/client-certificate-data
  • client-key-data : $KUBEE_PASS_HOME/users/$KUBEE_USER_NAME/client-key-data
  • client-token : $KUBEE_PASS_HOME/users/$KUBEE_USER_NAME/client-token

To get the env in the prompt such as cluster and namespace, check kube-ps1