KubeKanvas Logo
  • Features
  • Pricing
  • Templates
    • How KubeKanvas works
    • Docs
    • Downloads
    • Blog
    • E-Book
    • Tutorials
  • FAQs
  • Contact
  • Features
  • Pricing
  • Templates
    • How KubeKanvas works
    • Docs
    • Downloads
    • Blog
    • E-Book
    • Tutorials
  • FAQs
  • Contact
  • Overview
  • Installation & Upgrade
    • login
    • configure
    • connect
    • list-clusters
    • keys
    • fetch-helm-chart
    • setup
    • setup-k3d
    • logout

kubekanvas configure

Discover Kubernetes clusters from your kubeconfig files, test connectivity, configure access credentials, generate encryption keys, and register clusters with your KubeKanvas organization.

Usage

kubekanvas configure [options]

Options

FlagDescriptionDefault
--scan <path>Scan a specific file or directory for kubeconfig files~/.kube
--resetReset configured clusters and optionally delete encryption keys—
--suppress-keysSkip encryption key creation or deletion during configuration—
-y, --yesSkip all confirmation prompts (non-interactive mode)—

What Happens During Configuration

1. Authentication Check

The CLI verifies that you are logged in with a valid authentication session. If not, it prompts you to run kubekanvas login first.

2. Organization Selection

If you belong to a single organization, it is selected automatically. If you belong to multiple, an interactive prompt lets you choose which KubeKanvas organization to register clusters under.

3. Encryption Key Setup

Unless --suppress-keys is provided, the CLI ensures you have an encryption keypair for Kubernetes Secret encryption. If no key exists, a new one is generated and the public key is uploaded to your organization. See kubekanvas keys for more on key management.

4. Kubeconfig Discovery

The CLI scans the specified directory (default ~/.kube) for YAML files that contain valid Kubernetes cluster configurations. It recursively searches subdirectories and validates each file.

5. Cluster Connectivity Testing

For each discovered cluster, the CLI:

  • Displays the cluster name, API server URL, and kubeconfig context
  • Asks for confirmation before proceeding (unless --yes)
  • Tests connectivity by running kubectl get namespace kube-system
  • Retrieves a unique cluster UID for de-duplication

6. User Access Configuration

For each reachable cluster, you choose how the CLI will authenticate with Kubernetes:

  • Use existing kubeconfig user: The CLI stores a mapping between the cluster and your existing kubeconfig context credentials
  • Create a custom KubeKanvas user: The CLI creates a new kubekanvas-agent user with a Certificate Signing Request (CSR), binds it to a Kubernetes cluster role of your choice (e.g., edit, admin, cluster-admin), and stores the client certificate locally

Role selection matters: The view role is read-only and will cause deployments to fail. The cluster-admin role grants full cluster access — use with caution.

7. Server Registration

Each confirmed cluster is registered with the KubeKanvas server under your organization, associated with your CLI's connection ID. If a cluster was already registered, the CLI skips gracefully.

Examples

kubekanvas configure
kubekanvas configure --scan /etc/kubernetes/configs
kubekanvas configure --yes
kubekanvas configure --reset
kubekanvas configure --reset --suppress-keys

Files Modified

FilePurpose
~/.kubekanvas/config.jsonStores connection ID
~/.kubekanvas/configCustom kubeconfig with KubeKanvas agent credentials (if created)
~/.kubekanvas/cluster-mapping.jsonMaps cluster names to kubeconfig file paths and contexts

Next: Connect to KubeKanvas to start receiving deployment commands from the visual IDE.

KubeKanvas Logo
Visual Kubernetes cluster design tool that helps you create, manage, and deploy your applications with ease.
Product
  • Features
  • Pricing
  • Templates
Resources
  • Blog
  • Tutorials
Company
  • About Us
  • Contact
  • Terms of Service
  • Privacy Policy
  • Impressum
XGitHubLinkedIn
© 2026 KubeKanvas. All rights reserved.