Skip to content

Han-PJ/Test-DevOps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Test DevOps

Test for DevOps by Han. How to use script to create docker image and deploy to Kubernetes using Jenkins pipeline

Prerequisites

  • Install the latest versions of Docker, kubeadm, Kubectl and Jenkins

  • Clone this repository

How to use

  1. Add new credentials for Docker Hub with username/password enter image description here
  2. Create new item. Provide a name for your new item (e.g. Assignment-node-app) and select Pipeline enter image description here
  3. Click This project is parameterized and add 2 String parameter
    • Name : docker_repository Default Value : e.g. aihan/node-app
    • Name : tag_name Default Value : e.g. latest enter image description here
  4. Click Pipeline tab
  5. Click Build with Parameters enter image description here
  6. Check required parameter and Click Build enter image description here
  7. If the job status is success, all stage color would be green. enter image description here
  8. Click Console Output to see the full output from the Pipeline run. The following output shows a successful run of your Pipeline. enter image description here
  9. Open Kubernetes dashboard you will see node-app in deployment , pod and service with relate to node-app from jenkins pipeline deployment enter image description here
  10. Open Browser enter endpoint service URL you will got response enter image description here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published