зеркало из https://github.com/microsoft/mindaro.git
98e6799284 | ||
---|---|---|
.. | ||
migrate-devspaces-assets.sh | ||
readme.md |
readme.md
Migrate assets of Azure Dev Spaces to Bridge to Kubernetes
This directory contains a script to deploy resources/assets that used to be deployed by Azure Dev Spaces.
Overview
This tool will re-deploy your resources using the assets generated by Azure Dev Spaces. Specifically, it does following steps:
- Builds the docker file and pushes the image to container registry.
- Deploys the helm charts.
- If required, deploys an ingress controller to provide a public endpoint to access the service over the internet.
Prerequisites
Please install the below pre-requisites if using this on your local machine, or alternately, you can just use Azure Cloud Shell for a seamless experience.
Note: When using Azure Cloud Shell, only Azure Container Registry is available for hosting docker images.
Use the tool
migrate-devspaces-assets.sh -g ResourceGroupName -n AKSName -h ContainerRegistryName
Flags:
-g Name of resource group of AKS Cluster [required]
-n Name of AKS Cluster [required]
-h Container registry name. Examples: ACR, Docker [required] (Azure Cloud Shell only supports hosting images in ACR)
-k Kubernetes namespace to deploy resources (uses 'default' otherwise)
-r Path to root of the project that needs to be migrated (default = pwd)
-t Image name & tag in format 'name:tag' (default = 'projectName:stable')
-i Enable a public endpoint to access your service over internet. (default = false)
-c Docker build context path. (default = project root path passed to '-r' option)
-y Doesn't prompt for non-tty terminals
-d Helm Debug switch