Multi-Environment

    This documentation will introduce how to use env-binding to automate multi-stage application rollout across multiple environments.

    Users usually have two or more environments to deploy applications to. For example, dev environment to test the application code, and production environment to deploy applications to serve live traffic. For different environments, the deployment configuration also has some nuance.

    We apply the Application in the example.

    After the Application is created, a configured Application will be created under the demo namespace.

    If you want to learn more about env-binding, please refer to Multi Cluster Deployment.

    env

    NameDescTypeRequiredDefault Value
    nameenvironment namestringtruenull
    patchconfigure the components of the Applicationpatchfalsenull
    placementresource scheduling strategy, choose to deploy the configured resources to the specified cluster or namespacetruenull
    selectoridentify which components to be deployed for this environment, default to be empty which means deploying all componentsselectorfalsenull

    placement

    NameDescTypeRequiredDefault Value
    clusterSelectorselect deploy cluster by cluster nameclusterSelectorfalsenull
    namespaceSelectorselect deploy namespace by namespace namenamespaceSelectorfalsenull

    selector

    clusterSelector

    NameDescTypeRequiredDefault Value
    namecluster namestringfalsenull

    You need to upgrade to KubeVela v1.1.5+ to enable namespaceSelector.