LogoLogo
Run to Console
  • ClawCloud Run
    • Document
    • Getting Started
      • Create a DevBox
      • Deploy Database
      • Deploy from Docker
      • Deploy from Template
    • Guide
      • App Launchpad
        • Install Application
        • Update Application
        • Custom Domain
        • Exposing Multiple Ports
        • Environment Variables
        • Configuration Files
        • Auto Scaling
        • Persistent Storage
        • Custom Domain Certificates
      • Devbox
        • Devbox List
        • Devbox Details
        • Devbox Release
      • Database
        • PostgreSQL
        • MySQL
        • Redis
        • MongoDB
        • Kafka
        • Milvus
      • Object Storage
      • Advanced
        • Workspace
        • Terminal
        • Cron Job
        • KubeConfig
    • Pricing
    • Billing & Usage
    • Migration
      • Migrate from Docker
      • Migrate from Docker Compose
    • Architecture
      • Devbox Architecture
      • System Architecture
      • User Architecture
    • Legal
      • Privacy Policy
      • Terms and Conditions
      • Data Processing Addendum
    • Changelog
    • Best Practice
    • FAQ
    • More
      • Abuse Complaint
    • Help
  • Blog
Powered by GitBook

Copyright @ 2023-Present CLAWCLOUD. All Rights Reserved.

On this page
  • Overview
  • Prerequisites
  • Configuration Workflow
  • Security Recommendations

Was this helpful?

Export as PDF
  1. ClawCloud Run
  2. Guide
  3. Advanced

KubeConfig

PreviousCron JobNextPricing

Last updated 1 day ago

Was this helpful?

Overview

ClawCloud Run adheres to Kubernetes conventions to simplify adoption for developers familiar with open-source Kubernetes ecosystems. Instead of introducing proprietary cluster management APIs, we enable direct integration with standard kubectl tooling. Users migrating from Kubernetes environments will find their existing workflows and toolchains fully compatible with ClawCloud Run.

This guide demonstrates how to:

  • Download a Kubeconfig.yaml file from the ClawCloud Run console

  • Configure kubectl for cluster management

  • Validate connectivity and implement security best practices


Prerequisites

  1. Cluster Access Active permissions for your target Kubernetes cluster

  2. kubectl Installation Install kubectl following

  3. Network Connectivity Ensure outbound access to Kubernetes API Server endpoints


Configuration Workflow

Step 1: Download Kubeconfig File

  1. Access Console Navigate to the ClawCloud Run management portal

  1. Export Configuration Hover over the profile icon in the top-right corner:

  • Select Connection Settings tab

  • Locate Kubeconfig Download section

  • Click Download Kubeconfig and save securely

⚠️ Security Note: This file contains sensitive credentials - store it in a protected location


Step 2: Configure Kubeconfig

Method 1: Single Cluster Setup (New Users)

# Create configuration directory
mkdir -p ~/.kube

# Replace default config
cp /path/to/your/Kubeconfig.yaml ~/.kube/config

Method 2: Multi-Cluster Management (Advanced)

# Merge configurations
KUBECONFIG=~/.kube/config:/path/to/Kubeconfig.yaml kubectl config view --flatten > ~/.kube/config_temp
mv ~/.kube/config_temp ~/.kube/config

Step 3: Validate Connectivity

Test configuration with:

kubectl get pods

Expected Output:

NAME           READY   STATUS    RESTARTS   AGE
devbox-6zgnz   1/1     Running   0          7d18h

Security Recommendations

  1. File Permissions

    chmod 600 ~/.kube/config
  2. Credential Rotation Regenerate Kubeconfig files via console every 90 days

  3. RBAC Best Practices Create distinct role-based access control (RBAC) policies for individual users

official Kubernetes instructions