mindaro/tools
Michelle Soedal 3bdfae181b update chart locations 2020-12-18 06:42:25 -08:00
..
migrate-devspaces-assets.sh update chart locations 2020-12-18 06:42:25 -08:00
readme.md Docker context is -c 2020-10-27 15:43:31 -07:00

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:

  1. Builds the docker file and pushes the image to container registry.
  2. Deploys the helm charts.
  3. 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.

  1. azure cli
  2. kubectl
  3. docker
  4. curl
  5. gunzip
  6. tar

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