DEPLOY WEB APPLICATION IN ALIBABA CLOUD CONTAINER SERVICE FOR KUBERNETES (CI/CD)

        DEPLOY WEB APPLICATION IN ALIBABA CLOUD CONTAINER SERVICE FOR KUBERNETES (CI/CD)

Container Registry:

               Store, manage, and secure your Docker container images

container service Kubernetes

                  ACK allows you to deploy applications in high-performance and scalable containers and provides full lifecycle management of enterprise-class containerized applications

Step 1 : Go to container registry console -> create a repository



 

Step 2 : Bind our GitHub/Bitbucket Account on it & select the application you want to deploy

 

 

Step 3: On the Overview page in container registry, In left plane select Instance then click access credential & set a temporary password for pulling & pushing docker images

 

Step 4 : On the same overview page In left plane select repository then click access control & go internet option , enable the internet access , when creation there a whitelist added by default , delete it

 

 

Step 5 : Go to Repository -> YOUR_REPO -> click build on the left plane - > Add build rule

 

Type : Branch

Code Branch : master

Directory : where the Docker file present

 

Step 6 : after adding Build rule In action click build , wait few minutes  your image is ready & shows success status 

 

Step 7 :  Go to container service Kubernetes & create manged cluster

 

Step 8 : Go inside your cluster click Cluster resource you will see a Vpc created , then go your container registry overview page In left plane select repository then click access control & go vpc option add the same vpc used for cluster

 

Step 9:

1. Go to your cluster -> select deployment from your left plane, In the main page click CREATE FROM IMAGE

2. In next page select image

3. Image version : latest

 

4.  then click Set image pull secret -> here you need to provide the username & password which you set in container registry and click next

 

5. create service & fill the following details & click create

6. Next you will notified as your deployment suces

 

Step 10 :  Go to the deployment & view your application through external end point

 

Step 11 : For pipeline on the same deployment page click trigger -> create trigger , action redeploy & you will get a trigger link & copy the trigger link

 

 

Step 12 : Go to container registry -> YOUR_REPO click trigger on left plane & create , paste the trigger link and confirm

 

Step 13 : If you commits any changes on trigger happens  ,it will built new images and deployed automatically & see the changes on external end point

 

Comments

Popular posts from this blog

GLOBAL ACCELERATOR

Easy Dispatch for Field Service Management

Alibaba Global Mathematics Competition 2022 Open ,Register & Appear for exam and win Exciting Prizes