filmov
tv
Deploy Springboot App into AKS Cluster using Jenkins Pipeline | Deploy Springboot to Kubernetes
Показать описание
How to Automate build and deployment of Springboot Microservices Docker Container into Azure Kubernetes Cluster(AKS) using Jenkins pipeline?
Sample springboot App Code:
I have created a sample Springboot App setup in GitHub. Click here to access code base in GitHub.
Jenkins pipeline will:
- Automate maven build(jar) using Jenkins
- Automate Docker image creation
- Automate Docker image upload into Azure container registry
- Automate Deployments to Azure Kubernetes Cluster
Pre-requisites:
1. AKS cluster needs to be up running. You can create AKS cluster using any of one of the below options:
Create AKS cluster in Azure portal directly
Create AKS cluster using Azure CLI
Create AKS cluster using Terraform
2. Jenkins instance is setup and running
3. Make sure to Install Docker, Docker pipeline and Kubectl CLI plug-ins are installed in Jenkins
4. Install Docker in Jenkins and Jenkins have proper permission to perform Docker builds
5. Install Kubectl on Jenkins instance
6. ACR is also setup in Azure cloud.
7. Make sure AKS has pull access from ACR
8. Dockerfile created along with the application source code for springboot App.
9. Modify K8S manifest file per acr, image name for AKS Deployment.
10. Install Azure CLI on your local machine. (We will be creating the AKS cluster from our local machine)
Комментарии