Introduction:
This end-to-end solution package uses pre-configured applications to demonstrate Cloudify functionality, to provide a rapid way to test drive the Cloudify platform with a typical IT environment and experience first-hand how to apply automation to your different clouds and applications. If you have not received a lab link, click the button below to get started.
Get Your Lab Environment
We have built a lab scenario to demo how to leverage orchestration in a typical enterprise environment looking to apply central orchestration across more than one cloud, and even test drive containers.
You can also run the lab with OpenStack and AWS! TRY NOW >>
The end to end lab scenario will result in a deployment that looks like this:
The lab environment enables you to test drive Cloudify at your own pace, with three different modules:-
Beginner Scenario ~10 minutes to complete
-
Intermediate Scenario ~30 minutes to complete
-
Advanced Scenario ~25 minutes to complete
Below you will find a detailed explanation for how to launch the lab, how long each phase takes and documentation for how to use it, and ultimately how you can then leverage the lab environment to demo Cloudify functionality in the remaining ~hour of usage (full advanced scenario).
Overview:
Many typical large-scale organizations would like to achieve multi-layer automation across their entire stack. A typical architecture for a large-scale organization’s stack looks like this:
The end-to-end advanced lab scenario will enable you to create a preconfigured stack with all of the blueprints and plugins to run the scenario that focuses on the parts of the stack highlighted above. This end to end example is an advanced scenario targeted at users that would like to learn how to leverage Cloudify step by step, starting with a single cloud scenario with a simple NodeJS application, through a multi-cloud scenario with service chaining, and finally a multi-stack scenario with Kubernetes. The example can also be done in parts to incrementally learn how to work with Cloudify, and is divided into three separate parts for beginner, intermediate, and advanced users - where each phase is a prerequisite to continue to the next phase.IMPORTANT NOTES:
-
If you intend to complete the end-to-end advanced lab scenario, it is suggested that the first step should be to launch the Kubernetes cluster, as this can take 20-30 minutes. GO HERE.
-
Please note that this lab scenario requires you to have your own Azure environment, and will prompt you for credentials during setup. The remainder will be provided by the lab itself.
The story in the end-to-end solution package covers these Cloudify features:
-
Multiple management networks (Multi-cloud)
-
Traditional VMs, containers, and Kubernetes orchestration (Hybrid-cloud & stack)
-
Multi-tenancy
-
Deployment proxy (Deployments as a Service)
-
Global and tenant secrets
-
Scaling
-
Coordinated multi-cloud deployment
-
Coordinated hybrid cloud deployment
-
Multi-blueprint composition
-
Kubernetes cluster deployment
-
Templatized Kubernetes resource deployment
-
Openstack compute and network orchestration
-
Azure compute and network orchestration
-
Cross-template/cross-cloud scaling
-
MariaDB, HAProxy, Drupal, and Wordpress orchestration
-
Service Chaining
GETTING STARTED - ALL SCENARIOS
Lab Creation (~15 Minutes)
-
Go to cloudify.co.
-
Click the link "Test Drive".
-
On the next page, click the link "Launch Lab".
-
Fill out the form, click the link "Create Lab & Get Unique URL".
-
Go to your email and open the email, "Your Cloudify Lab Environment Has Been Created".
-
Click the URL linked after "Your lab is available at the following URL:...".
-
Scroll down and click on the "Start Lab” button.
-
This will initialize the lab launching process. You will need to wait several minutes for the lab to finish deploying. The progress meter should read 100% for you to be able to begin.
-
When the lab is finally ready, you can get started with the beginner scenario.
RESULT:
Once this is completed you will have the following available in your environment:
-
A preconfigured running OpenStack private cloud
-
A running Cloudify manager with preconfigured blueprints and plugins required to launch the entire advanced scenario
Beginner Scenario (~10 Minutes):
-
In the left menu navigate to Blueprint Catalog.
-
Find the “nodecellar-auto-scale-auto-heal-blueprint” blueprint and click Upload. You are now uploading a blueprint to the Cloudify Manager.
-
In the dialog box that will open, provide the blueprint with a name you will recognize, for example nodecellar, and select the openstack.yaml blueprint from the drop down menu below. Click Upload.
-
Once you have completed this step, navigate to Local Blueprints in the left menu, where you should now find the blueprint you just created. Click on the Deploy button on the bottom right.
-
In the dialog box that will open, give the deployment a name you will recognize. Note: You do not need to change any of the default input values.
-
You are now creating a deployment. Once you have completed this step, you can now navigate to Deployments in the left menu.
-
Find the deployment name that you just created. On the right side of the screen you will see a small hamburger menu associated with this deployment. Click on it and select Install from the menu. This will install the nodecellar application. Installation should take about 4 - 5 minutes.
You now have an OpenStack private cloud running a simple NodeJS application.
What you can do next:
-
Under the Deployments menu you can scroll down to Deployment Outputs and find the IP of the running NodeJS application.
-
Open a new browser tab, paste in the application’s IP and see it running.
-
Test drive Cloudify auto-scale, auto-heal features, resource isolation and more.
-
Try to upload your own blueprint to the Cloudify manager and see it running.
Continuing to the next scenario:
If you intend to continue to the next step you will need to uninstall the blueprint you have just deployed.
-
Navigate to Deployments and click on the nodecellar deployment.
-
At the top you will find a menu button called Execute workflow, select the Uninstall workflow and then in the dialog box that will open click on the Execute button.
-
Your nodecellar blueprint will uninstall and you will be ready to continue to the next lab scenario.
Intermediate Scenario (~30 Minutes) - Two Parts
This scenario will demonstrate how to leverage your existing OpenStack environment, install a global database for multiple applications, a load balancer in front of it, and build a service chain, and then create a multi-cloud deployment.
Part 1 - OpenStack Only
-
Navigate to Local Blueprints in the left menu. Find the db blueprint. Click on the Deploy button. When the dialog box opens, name the deployment db, and click Submit.
-
Next navigate to Deployments and select the Install workflow from the right Execute workflow menu. This will install a MariaDB/Galera Database cluster on OpenStack.
-
Wait for the install workflow to complete and under the deployments on the same page select the db deployment, and scroll and find the Deployment Outputs. Copy the single IP in the cluster_addresses output.
-
Go to Local Blueprints in the side menu. Find the lb blueprint. Click Deploy. Name the deployment lb, provide the IP you just copied from the Deployment Outputs as the input value for application_ip input, and click Submit. Navigate to Deployments and select the Install workflow from the Execute workflow menu. This will install a Load Balancer on OpenStack for the apps to use the MariaDB/Galera cluster as a backend.
-
Go to Local Blueprints. Find the drupal blueprint. Click Deploy. Name the deployment drupal.
You now have MariaDB, HAProxy, and Drupal running on OpenStack.
What you can do next:
-
Navigate to Deployments and scroll down to Deployment Outputs to find the IP of the Drupal application you have just deployed. You will then be able to see your Drupal running once you paste the IP address into a new browser.
-
Upload additional blueprints leveraging the database, and load balancer you have created, and play with Cloudify policies around managing load, and global resources.
To continue to the next step, for the multi-cloud scenario, you will need to uninstall Drupal, the load balancer, and the database, in this order.
-
- Similar to uninstalling the nodecellar application, navigate to Deployments click on “drupal”.
- At the top you will find a menu button called Execute workflow, select the Uninstall workflow and then in the dialog box that will open click on the Execute button.
- Repeat these steps for both the db and lb blueprints, and you will be ready to continue to the next lab scenario.
Part 2 - Multi-Cloud Scenario
After you complete Part 1, you will then be able to replicate this scenario and deploy it to Azure, to experience a Cloudify multi-cloud deployment. To do so, you will first need to configure your Azure account details. (You can also use AWS or GCP credentials if you prefer).
Configuring Azure Account Details
This demo orchestrates a multi-cloud application; the lab is running on an OpenStack private cloud provided by Cloudify. In order to test drive the multi-cloud functionality, you will need to configure your own Microsoft Azure account details to complete this next part.
-
Navigate to System Resources in the left menu.
-
- In the Plugins section, click the Upload button, enter the following URLs for the wagon and yaml files, and click Upload:
- Wagon: http://repository.cloudifysource.org/cloudify/wagons/cloudify-azure-plugin/1.7.2/cloudify_azure_plugin-1.7.2-py27-none-linux_x86_64-centos-Core.wgn
- YAML: http://www.getcloudify.org/spec/azure-plugin/1.7.2/plugin.yaml
- In the Plugins section, click the Upload button, enter the following URLs for the wagon and yaml files, and click Upload:
-
Next, scroll down to the Secret Store Management section.
- Here you will be able to create the following Azure secrets:
-
azure_subscription_id
-
azure_tenant_id
-
azure_client_id
-
azure_client_secret
-
azure_location
- Click on the Create button to enter your cloud secrets. You will need to enter these values one at a time.
- Once completed, navigate to Local Blueprints, and click the button. Add the following information into each field:
- URL: https://github.com/cloudify-examples/azure-example-network/archive/master.zip
- Blueprint name: azure-example-network
- Blueprint file: Click and choose simple-blueprint.yaml from the list
-
Similar to the other blueprints, you will need to name the deployment in the dialog box that will open, e.g. azure-example-network, and click Deploy.
-
Navigate to Deployments and execute the Install workflow in the right menu of the azure-example-network deployment.
-
You can now repeat steps 6-8 for deploying MariaDB and HAProxy on Azure by uploading and blueprints and running the same steps as follows:
- MariaDB URL: https://github.com/cloudify-examples/mariadb-blueprint/archive/master.zip
- MariaDB Blueprint name: db-azure
- MariaDB Blueprint file: Click and choose azure.yaml from the list
- HAProxy URL: https://github.com/cloudify-examples/haproxy-blueprint/archive/master.zip
- HAProxy Blueprint name: lb-azure
- HAProxy Blueprint file:
- Click and choose azure.yaml from the list (when you deploy this, remember to use cluster ip address for the MariaDB cluster for the application_ip field)
-
You can now install the Drupal blueprint on OpenStack leveraging the remote database and load balancer.
-
This time when deploying the Drupal blueprint, enter the inputs in the db_deployment and lb_deployment fields as db-azure and lb-azure.
Result:
You now have a local application running on OpenStack with a service chain to a remote load balancer and database running in Azure.
-
Now you can test drive adding applications to your OpenStack & Azure clouds leveraging your global database, and create scaling groups, as well
- Try to create isolated resources and tenants
Now you can continue to the final step of deploying an application in a Kubernetes cluster running on OpenStack.
(Please note, if this step was not performed in the beginning, it will take approximately 20 minutes to deploy the Kubernetes cluster).Advanced Scenario ~ 25 Minutes
This scenario in the demo requires a Kubernetes Cluster. This is provided as part of your lab, you will just need to install it. Once you complete this scenario your full end-to-end deployment will look like this:
Navigate to Local Blueprints in the left menu, and find k8s-e2e, and click Deploy.-
Name your deployment in the dialog box that will open, e.g. kubernetes, and click Submit.
-
Navigate to Deployments in the left menu, select the kubernetes deployment you just created.
-
Under the Execute workflow menu button, select the Install workflow and click Execute in the dialog box that will open.
-
This will launch a Kubernetes cluster on OpenStack.
-
Please Note:
-
If you are performing this action as the first step before you get started, you can now go back to the Beginner or Intermediate Scenarios to continue your test drive with Cloudify.
-
This is what the deployment will look like once you have completed the install process as a first step.
-
-
-
If you are performing this task in the order of scenarios, this step will take approximately 15-20 minutes to install, so you can feel free to go get some coffee and resume from the next step.
-
-
Go to Local Blueprints. Find db-lb-app. Click Deploy. Change the db_blueprint input to db-azure. Change the lb_blueprint input to lb-azure, click Submit. This will install a Wordpress App on Openstack.
Next Steps
Now you can scale and update your application to experience Cloudify’s scaling capabilities. To do so:
-
Wait for the install workflow to complete. Click on the deployment. Click on the Execute workflow menu button.
- Select "Scale and Update". Change the lb_deployment_id to lb-azure and the db_deployment_id parameter to db-azure. Change the timeout to 1000. Click Execute. This will scale the MariaDB Galera cluster and add a backend node to the HAProxy Deployment.
Next Steps
After you have finished with these steps, explore some of the other examples that are designed for this lab, such as:
If you have credentials for GCP, try installing the DB-LB-APP, by starting with this network setup:Feel free to reach out to our user group if you have any questions or need help getting started, and we'd be happy to hear feedback about your experience with running this lab.
Comments
0 comments
Article is closed for comments.