Jenkins Pipeline for Docker App Deploy to AKS Cluster | Jenkins Kubernetes Deployment to AKS Cluster


We will learn how to automate Docker builds using Jenkins and Deploy into Kubernetes Cluster. We will use Python based application. I have already created a repo with source code + Dockerfile. The repo also have Jenkinsfile for automating the following:

– Automating builds using Jenkins
– Automating Docker image creation
– Automating Docker image upload into Docker registry
– Automating Deployments to Kubernetes Cluster

Pre-requistes:
1. AKS Cluster is setup and running.Click here to learn how to create AKS cluster.
2. Jenkins Master is up and running.
3. Setup Jenkins slave, install docker in it.
4. Docker, Docker pipeline and Kubernetes Deploy plug-ins are installed in Jenkins

source

4 thoughts on “Jenkins Pipeline for Docker App Deploy to AKS Cluster | Jenkins Kubernetes Deployment to AKS Cluster”
  1. Can we integrate Terraform in this pipeline to provision for AKS containers ? If yes, the I assume we set up a terraform code in git and run it in the Jenkins pipeline ? But in which step in the groovy script, then at what stage would be invoking that TF code ? I'm just starting up with these technologies. Correct me if I'm wrong.

  2. Hi, I have scenario like jenkins and ansible server two different aws ec2 servers i have been trying to deploy an app by using jenkins pipeline. Please tell me how to integrate jenkins and ansible b/w two different sever. Please suggest how write jenkins pipeline job

  3. Loading configuration: C:Usersnavjo.jenkinsworkspaceDefaultk8s-deployment.yaml

    ERROR: ERROR: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment

    in 'reader', line 1, column 1:

    apiVersion: apps/v1

    ^

    hudson.remoting.ProxyException: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment

    in 'reader', line 1, column 1:

    apiVersion: apps/v1

    Can you help?

Leave a Reply

Your email address will not be published.

Captcha loading...