Jenkins Server which is having Docker and maven Installation
Create k8s Cluster with Master and Worker node
Create docker repository to push generated application
Our sourcecode repository must have jenkins , Dockerfile, Depolyment.yml files these are mandatory files
Prerequisite's
Jenkins Server which is having Docker and maven Installation Create k8s Cluster with Master and Worker node Create docker repository to push generated application Our sourcecode repository must have jenkins , Dockerfile, Depolyment.yml files these are mandatory files
Procedure
Create one job in Jenkins by using pipeline
Create pipeline syntax (Example) : pipeline { agent any stages { stage('Clone Repo') { steps { git branch: 'main', credentialsId: 'GIT_CREDENTIALS', url: 'https://github.com/satish8450/KubernetsDeployement.git' } } stage('Build') { steps { sh 'mvn clean package' } }
} }