Deploy Springboot App into AKS Cluster using Jenkins Pipeline | Deploy Springboot to Kubernetes

  Рет қаралды 8,989

DevOps Coach

DevOps Coach

Жыл бұрын

www.coachdevops.com/2022/11/h...
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.
github.com/akannan1087/spring...
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)
www.cidevops.com/2022/11/how-...

Пікірлер: 20
@karthimvs
@karthimvs Жыл бұрын
well explained bro. Thanks for your sharing
@DevOpsCoach
@DevOpsCoach Жыл бұрын
Glad it was helpful!
@naren06938
@naren06938 6 ай бұрын
Excellent video Sir, if u use Dependancy check, Trivy scan also, its become full complex best CICD....
@DevOpsCoach
@DevOpsCoach 6 ай бұрын
Yes, you are right
@PrithviRajKC
@PrithviRajKC 9 ай бұрын
How does the Kubernetes authenticates to the ACR? It needs to have a 'imagePullSecrets' command in the yaml file.
@tonycavanagh1929
@tonycavanagh1929 Жыл бұрын
Brilliant I was following another vid and they were using "kubernetes continuous deploy" which is no longer used. But kubeconfig:Setup Kubernetes CLI (kubectl) seems a lot better. And more intuitive.
@DevOpsCoach
@DevOpsCoach Жыл бұрын
Yes absolutely, that plug-in is not usable any more.
@PHOENIX-he9fl
@PHOENIX-he9fl Жыл бұрын
Good❤️
@DevOpsCoach
@DevOpsCoach Жыл бұрын
Glad you liked it!
@victoranolu4376
@victoranolu4376 Жыл бұрын
I am looking to do a similar setup in this video but the task is to make everything in an IaC approach. I am looking to use Terraform to do this but i am a bit confused on how to set everything up. Do you have any resource that can be of help to me. Thanks
@DevOpsCoach
@DevOpsCoach Жыл бұрын
Yes, absolutely. try my video here --> kzbin.info/www/bejne/n2bEcn-enb13rcU
@vinvvinv7460
@vinvvinv7460 Жыл бұрын
Hi, can you please make a video & explain the writing/structure of Ansible & Terraform in a simple manner & in layman's terms, like when & where to add spaces, hyphens, what is variable, etc it's a bit confusing...I am not from a programming background and hence find it difficult to understand. please it's a request, do reply
@sheshammoukthika9789
@sheshammoukthika9789 11 ай бұрын
I am getting error while pushing image in to acr, login failed error
@DevOpsCoach
@DevOpsCoach 11 ай бұрын
Check acr credentials
@debabratamohanty3321
@debabratamohanty3321 Жыл бұрын
Hi ,Deployment can't happen with Jenkins ,need Authentication kubectl apply -f springboot-lb.yaml Error from server (Forbidden): window.location.replace('/login?from=%2Fswagger-2.0.0.pb-v1%3Ftimeout%3D32s'); Authentication required This is the Error
@DevOpsCoach
@DevOpsCoach Жыл бұрын
you need to add kube config entry with kubeconfig in credentials
@sarthak7413
@sarthak7413 Жыл бұрын
is it possible to deploy multiple docker images on AKS simultaneously?
@DevOpsCoach
@DevOpsCoach Жыл бұрын
yes..it does not matter.. you can deploy as many..
@sarthak7413
@sarthak7413 Жыл бұрын
@@DevOpsCoach Thanks
@sarthak7413
@sarthak7413 Жыл бұрын
@@DevOpsCoach Is there any way to modify the kubernetes yaml file to take image tag directly from jenkins pipeline instead of hardcoding it?
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 77 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 14 МЛН
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 16 МЛН
Azure Kubernetes Services (AKS) Overview
23:34
John Savill's Technical Training
Рет қаралды 131 М.
Kubernetes 101: Deploying Your First Application!
40:47
DevOps Directive
Рет қаралды 52 М.
DevSecOps Pipeline Project: Deploy Netflix Clone on Kubernetes
1:34:31
Kubernetes vs. Docker: It's Not an Either/Or Question
8:04
IBM Technology
Рет қаралды 1,1 МЛН
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 743 М.
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 640 М.
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 4,2 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,4 МЛН