Build with an Azure free account. Get USD200 credit for 30 days and 12 months of free services.

Start free today

Getting started with CI/CD & Azure Container Service (AKS) powered by VSTS

Sign in to queue

Description

In this video we walk through, step by step, how to setup a complete CI/CD pipeline for Azure Container Service (AKS) and VSTS. You will learn how to build and push a Docker image to Azure Container Registry, and then use that image as part of your release definition where you create a deployment to your AKS Kubernetes cluster. If you are completely new to Kubernetes, this is the video for you. We use two simple commands as tasks to handle the deployment during release: kubectl run [deployment-name] --image [image-name] --port [application-port] kubectl expose deployment [deployment-name] --type=LoadBalancer --port 80 --target-port [application-port] That's it! Try it out and tag me on Twitter (@jldeen) if you deploy your first container (pod)! Get started today with VSTS, visit: https://www.visualstudio.com/vsts

Create a Free Account (Azure): https://aka.ms/c9-azurefree

Day:

0

Session Type:

Pre-Record

Code:

THR5061

Embed

Download

The Discussion

  • User profile image
    alvipeo

    When setting up a Kubernetes connection you guys have to point a finger at where to get Server Url and especially where to get KubeConfig!

  • User profile image
    alvipeo

    oooh, I found it!

  • User profile image
    alvipeo

    ok, any subsequent Release throws an error:

    Error from server (AlreadyExists): deployments.extensions "my-image" already exists

    I couldn't find how to fix it. So it's a one-time deployment, not continuous for sure.

  • User profile image
    CharlesX

    Failed to pull image "acr0625.azurecr.io/nick19860328/build18-node": rpc error: code = Unknown desc = Error response from daemon: Get https://acr0625.azurecr.io/v2/nick19860328/build18-node/manifests/latest: unauthorized: authentication required

    I got this error from Kubernetes, is there anyone can help me?

  • User profile image
    iwr

    @CharlesX:I also have this problem. I couldn't solve whatever I tried. Please can somebody help?

  • User profile image
    tshaiman

    @iwr: same here. after examining the Deployment script I found it has no "imagePullSecrets" tag.
    trying to follow this article: https://docs.microsoft.com/en-us/azure/container-registry/container-registry-auth-aks,

    anyhow the instructions in the video are lacking the explanation of proper principal and authentication between AKS and ACR.

  • User profile image
    FM75

    Thanks for the video good pace! I wish you could add the deployment.yaml part regarding how to deploy from the ACR to kubernetes. This part would be really handy. As I understand it, we do the following: push files/code to Git --> add Docker tasks on VSTS for the build stage (create image and push image) --> sends image to ACR --> then a deployment.yaml file should be used in the production environment (in VSTS) to help deploy the container to AKS. I feel this final step is missing? thanks (just so you know I am a very junior developer learning some devOps now).

Add Your 2 Cents