Zadig 文档
Zadig
教程
博客
论坛
关于
中文英文
Zadig
教程
博客
论坛
关于
Zadig v4.2
Loading...
     编辑文档
     反馈问题
     社区讨论

    本页导航

    Official Script

    This guide describes how to use official scripts to install or upgrade Zadig on an existing Kubernetes cluster, suitable for enterprise production environments.

    # Resource Preparation

    • Kubernetes cluster version: v1.16+, recommended 8C16G, admin privileges
    • Helm version: v3.5.0 or above

    Tip

    • If you use built-in storage components (MySQL/MongoDB/MinIO), configure the default StorageClass in Kubernetes for PVC persistence before installation
    • Some cluster network plugins may prevent Service backend Pods from self-access; please verify in advance
    • Configure kube-dns to ensure name-based addressing between services and Pods

    # Installation

    # Step 1: Prepare the Installation Environment

    • A machine with network access to the cluster to execute the installation script
    • kubectl(opens new window) installed with admin privileges

    # Step 2: Download the Installation Script

    Choose the script based on your scenario. All scripts are the same version; the difference is whether persistent storage is supported:

    ScenarioDownload SourceDescription
    Quick StartOfficial(opens new window)
    GitHub(opens new window)
    No persistence, not for production
    ProductionOfficial(opens new window)
    GitHub(opens new window)
    Supports persistence, recommended for production

    Download and add execute permission:

    # Quick Start
    curl -LO https://github.com/koderover/zadig/releases/download/v4.2.1/install_quickstart.sh
    chmod +x ./install_quickstart.sh
    
    # Production
    curl -LO https://github.com/koderover/zadig/releases/download/v4.2.1/install.sh
    chmod +x ./install.sh
    
    1
    2
    3
    4
    5
    6
    7

    Tip

    The following environment variables are supported. Defaults are used if not set. Set them before running the script if needed.

    # Example: set IP access address
    export IP=<node external ip>
    export PORT=<any port between 30000-32767>
    
    1
    2
    3
    Variable NameDefaultRequiredDescription
    NAMESPACEzadigNoKubernetes namespace
    DOMAINOne of IP/DOMAINDomain for accessing Zadig (production script only, must resolve to gateway-proxy)
    IPOne of IP/DOMAINExternal IP of any cluster node for accessing Zadig
    PORTRequired if using IPAny valid Kubernetes port (30000-32767)
    SERVICE_TYPENodePortNoGateway service type: NodePort/LoadBalancer, default NodePort
    STORAGE_SIZE20GNoStorage size for built-in DB and object storage
    STORAGE_CLASSNoStorage class for persistence (production script only)
    MONGO_URINoExternal MongoDB URI, escape multiple addresses (production script only)
    MONGO_DBzadigNoMongoDB database name (production script only)
    MYSQL_HOSTNoExternal MySQL host (production script only)
    MYSQL_PORTNoMySQL port (production script only)
    MYSQL_USERNAMENoMySQL username (production script only)
    MYSQL_PASSWORDNoMySQL password (production script only)
    ENCRYPTION_KEYNoData encryption key. Save after first install; set same value for reinstall to decrypt previous data

    # Step 3: Start Installation

    # Quick Start

    export IP=<IP>
    export PORT=<valid port>
    ./install_quickstart.sh
    
    1
    2
    3

    # Production

    Configure persistence and support for external HA MongoDB and MySQL:

    Warning

    Version requirements: MongoDB ≥ 4.4, MySQL ≥ 5.7

    export IP=<IP>
    export PORT=<valid port>
    export EMAIL=example@koderover.com
    export PASSWORD=zadig
    # Configure HA MySQL, create dex and user databases in advance
    export MYSQL_HOST=<MYSQL_HOST>
    export MYSQL_PORT=<MYSQL_PORT>
    
    1
    2
    3
    4
    5
    6
    7

    ← Using HelmO&M Tools→

    资源
    教程
    论坛
    博客
    公司
    关于
    客户故事
    加入我们
    联系我们
    微信扫一扫
    hello@koderover.com

    © 2026 筑栈(上海)信息技术有限公司 沪 ICP 备 19000177 号 - 1

    •  跟随系统
    •  浅色模式
    •  深色模式
    •  阅读模式