Full stack deployment using UCD – Part3
Lets go ahead and click on Create a new Blueprint . Go to top of homepage and click on New Blueprint
This creates a blank .yaml file as below .
- Images : On the right side of panel , we see various images which come from AWS catalog in our case. One can see that they are classified under various headers like Ubuntu , RHEL , Suse etc
- Components : We have various components which have been created in UCD for application deployment . In this case we have already created various components in UCD for deployment of three tier application ( jke.db contains db scripts , jke.war contains war file , MYSQL Server contains sql server installation and Liberty Profile has Liberty installation ) Also as you see the various agents components are also created ( This was covered in last section of Part1 of my Blog ) , depending on OS of VM , appropriate agent package is automatically selected and installed.
- Networks : Under Networks it displays the networks which have been created or one can also create new networks.
- Security Policy : Under this section various Inbound and Outbound ports and hostnames rules which have been opened are listed . One can assign the required group.
Now let’s go ahead and create blueprint , one can drag and drop image .
- In my case I have added two images – RHEL and Ubuntu . RHEL machine would be used for AppServer , so if you look within AppServer Machine – one can see two Components – Liberty ( which installs liberty) and war file being added.
- On the other machine , which is DB server , I have dragged MYSQL Server Component ( which installs DB server ) and also JKE.db .
- Next Network is added and both VMs are joined to same network
- Security Group is attached to both
- Deployment Sequence which tells in what order the components should be deployed is added to each component.
With this our Blueprint is ready and now we are ready to provision .
Click on Provision Button on top and In pop-up add details of required configurations by selecting right parameters and go ahead
Once provisioning starts , one can see the various activities and their status.
What this does is first provisions images , then installs agents on each of those machines. Next it creates resource tree in UCD and maps the required components to the agents.When all this is done, it starts deployments of components in order specified.
If you log into AWS console, you can see two servers – AppServer VM & DB Server VM – up and running.
Now fetch the IP of the AppServer from AWS console and access app via <ip>:9080
So in this series , we saw how we could do full stack deployment of application , starting from provisioning the infrastructure , installing middleware and then installing the application.
- Posted in: Uncategorized