AKS: CI/CD pipeline using AKS

12/26/2017

I'm trying to figure out the steps to setup CI/CD for an Asp.Net Core web application using AKS with VSTS. Are the steps described in https://docs.microsoft.com/en-us/vsts/build-release/apps/cd/azure/deploy-container-kubernetes valid for what I'm trying to do? Are windows container supported in AKS?

-- frosty
azure
azure-container-service
azure-devops
kubernetes

5 Answers

12/26/2017

Windows support on k8s is better with Windows Server version 1709 which needs Kubernetes v1.9 (bleeding edge stable). See https://kubernetes.io/docs/getting-started-guides/windows/

Unfortunately, at this time, AKS preview only supports up to 1.8.2.

-- navicore
Source: StackOverflow

1/13/2018

Frosty, if you can create a docker image out of your Windows machine, it can be pushed to the container registry and then deployed to Kubernetes cluster. Here are some links for reference:

Building and Pushing Windows container images: https://blog.docker.com/2016/09/build-your-first-docker-windows-server-container/

Install Azure CLI: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

Create Kubernetes cluster in AKS: https://coderise.io/kubernetes-cluster-on-azure-container-service/

-- coderiseio
Source: StackOverflow

3/11/2020

Currently Windows container are only in private preview, and you need to enable it using Azure CLI do some steps, please refer this official docs: https://docs.microsoft.com/en-us/azure/aks/windows-container-cli. After you enable it, then you can check the 'Windows Container' option when you create node pool in your azure kubernete service account.

-- Jason Cai
Source: StackOverflow

7/2/2018

Windows containers are in private preview in AKS (reference); you can sign up using this form.. You can run hybrid clusters (Linux+Windows, up to 1803) using acs-engine today.

The VSTS walkthrough you linked is valid; check also this one and this one.

Update: Windows support for AKS is still a work in progress.

-- Alessandro Vozza
Source: StackOverflow

3/6/2019

If your application is in ASP.Net Core, then you can host it in Linux as your code is platform independent. I have done this using Docker-file where your container is a self hosted app running on AKS.

VSTS provides a Inbuilt task to deploy to your AKS cluster in your build pipeline.

-- Nithin Prasad
Source: StackOverflow