Skip to main content
Version: main 🚧

exportKubeConfig

The exportKubeConfig key configures how vCluster exports the cluster's kubeconfig, including the context, server, and target Secrets. For how to configure it, see Export kubeconfig.

exportKubeConfig object ​

ExportKubeConfig describes how vCluster should export the vCluster kubeConfig file.

context string ​

Context is the name of the context within the generated kubeconfig to use.

server string ​

Override the default https://localhost:8443 and specify a custom hostname for the generated kubeconfig.

insecure boolean false ​

If tls should get skipped for the server

serviceAccount object ​

ServiceAccount can be used to generate a service account token instead of the default certificates.

name string ​

Name of the service account to be used to generate a service account token instead of the default certificates.

namespace string ​

Namespace of the service account to be used to generate a service account token instead of the default certificates. If omitted, will use the kube-system namespace.

clusterRole string ​

ClusterRole to assign to the service account.

secret object ​

Declare in which host cluster secret vCluster should store the generated virtual cluster kubeconfig. If this is not defined, vCluster will create it with vc-NAME. If you specify another name, vCluster creates the config in this other secret.

Deprecated: Use AdditionalSecrets instead.

name string ​

Name is the name of the secret where the kubeconfig should get stored.

namespace string ​

Namespace where vCluster should store the kubeconfig secret. If this is not equal to the namespace where you deployed vCluster, you need to make sure vCluster has access to this other namespace.

additionalSecrets object[] ​

AdditionalSecrets specifies the additional host cluster secrets in which vCluster will store the generated virtual cluster kubeconfigs.

context string ​

Context is the name of the context within the generated kubeconfig to use.

server string ​

Override the default https://localhost:8443 and specify a custom hostname for the generated kubeconfig.

insecure boolean ​

If tls should get skipped for the server

serviceAccount object ​

ServiceAccount can be used to generate a service account token instead of the default certificates.

name string ​

Name of the service account to be used to generate a service account token instead of the default certificates.

namespace string ​

Namespace of the service account to be used to generate a service account token instead of the default certificates. If omitted, will use the kube-system namespace.

clusterRole string ​

ClusterRole to assign to the service account.

name string ​

Name is the name of the secret where the kubeconfig is stored.

namespace string ​

Namespace where vCluster stores the kubeconfig secret. If this is not equal to the namespace where you deployed vCluster, you need to make sure vCluster has access to this other namespace.