Posts

Showing posts with the label Nginx

CI/CD Deployment pipeline using Jenkins on Kubernetes to deploy a Simple Nginx application

Image
  Requirements: For CI/CD deployment pipeline using Jenkins on Kubernetes you need git repository and Kubernetes setup as well as Jenkins plugins named docker , docker pipeline( plugin integrates Jenkins with docker)and Kubernetes continuous deployment Create credentials in Jenkins for Kubernetes (Given ID will use in Jenkinsfile). Click to Credentials on the left menu and fill the fields as shown in below image 3. Create a new item and select pipeline option as shown in below image Create a new item with pipeline option 4(a). Now add credentials with the key file in two steps to use encrypted git credentials in Jenkinsfile Create a secret text to implement the git 4(b). now got to the project -> click on pipeline syntax link now right-side drop-down choose: with credentials: Bind credentials to variables and then choose a secret box from next drop down box and choose above credential ID and enter any value which will use in Jenkinsfile. It will generate the line of code...