Google Associate Cloud Engineer – Other Important Services Part 1

  • By
  • August 24, 2023
0 Comment

1. Step 01 – Getting Started with Cloud Deployment Manager

Come back in this step. Let’s talk about Google cloud deployment. Manager what is Google Cloud Deployment Manager? Let’s consider a very simple example. I want to create a new VPC and a new subnet. I want to provision a load balancer. I want to create an instance group with five Compute Engine instances. And I would want to use Cloud SQL database in the subnet. I would want to set up the right firewall, and I would want to create four such environments. Dev, QA, Stage and Production Deployment Manager can help you to do that with a simple script. Actually, the script is not really simple, but once you write the script, you can use that and you can create these resources in multiple environments.

So if you want to automate the provisioning of your infrastructure, you can make use of Deployment Manager manually. Provisioning infrastructure is very, very difficult. You don’t want to go to each environment and create a VPC, create a subnet, create a load balancer, create instance groups, and then create the database. That would take a long time. And this would also mean you’ll make a lot of mistakes. And that’s why you would go for a tool like Cloud Deployment Manager, where you can automate everything out with a simple script. One of the advantages of going for a Cloud Deployment Manager, you can automate deployment and modification of Google Cloud resourcesin a controlled, predictable way.

You can deploy into multiple environments very easily. You can avoid configuration drift if you are manually making changes to the environment, you might have updated one environment without updating another environment. And this is what is called Configuration Drift. If you are automating everything, then you will not have configuration drift. You can avoid the mistakes that you would have when you make manual configuration. If you are manually configuring a lot of screens, lot of services, then there is every chance that you would make a mistake. The way you think about Cloud Deployment Manager is as version control for your environments.

So your script contains all the resources that are created in a specific environment. And you can put that script in Version control and you can track the changes over a period of time. So the Cloud Deployment Manager script can act as version control for your environments. A very important thing whenever you create resources using Deployment Manager, do not modify them manually. Again in Google Cloud, always modify resources which are created by Deployment Manager. Using Deployment Manager, update the script and make the changes to the deployment. In this quick step, we got a quick introduction to Google Cloud Deployment Manager. We’ll talk more about Deployment Manager in the next step.

2. Step 02 – Understanding Cloud Deployment Manager

Back in the step. Let’s look at a few more details about the Google Cloud Deployment Manager. All the configuration for Google Cloud Deployment Manager is defined in a simple text file. It’s a YAML file, yet another markup language. So you can say I want a VPC, I want a subnet database. And the Deployment Manager understands the dependencies between all these. And it would actually first create a VPC, then creates a subnet, and then creates the database inside that subnet. Google Cloud Deployment Manager automatically rolls back on errors. So if there’s a failure in any of these steps in creating the resources, it would roll everything back so that you can easily retry again.

So if the creation of the database fails, it would automatically delete the subnet and the VPC. The best practice is to version control your configuration file and make changes to it over a period of time. Cloud Deployment Manager is free to use however you need to pay for the resources you provision. So if you have created a database using Cloud Deployment Manager, you need to pay for the database. You don’t need to pay for using the Cloud Deployment Manager. When you’re using Cloud Deployment Manager, it also provides you with an automated estimate for your configuration for the script you are executing. What is the estimate? You can get that when you are using Cloud Deployment Manager. Let’s look at a simple Cloud Deployment manager script.

You don’t really need to understand every detail in here. The idea is to see how you can actually define different resources. In here you can see that I’m creating a virtual machine and I’m saying this is the type. So the type is Compute v one instance and I’m specifying a few properties for my virtual machine. It needs to be created in a specific zone. I’m saying it should be of specific machine type. And then I’m also attaching a boot disk. I’m saying it should be a persistent disk, and I’m saying it should be deleted when the VM is deleted. I’m also configuring the source image for the boot disk in here. So in a simple text file like this, you can define how your Compute instance should look like.

And you can use Cloud Deployment Manager to create a VM using this script. Let’s look at some of the terminology related to Cloud Deployment Manager. A configuration file is YAML file with the resource definitions for a single deployment. Templates are reusable resource definitions that can be used in multiple configuration files. Let’s say you are creating a number of databases in your enterprise and you’d want all of them to adhere to certain standards. What you can do is you can create a few templates for your databases and you can use these templates in your configuration files. When you do that, all the databases which you are creating will be adhering to a standard.

Templates can be created in two different languages. One is Python which is the preferred language. The templates can also be defined in Ginja Two. However, Ginger Two is recommended only for very simple scripts. The next important terminology is deployment. When I execute a configuration file, a set of resources are created by Cloud Deployment Manager. In Google Cloud, the collection of resources that are deployed and managed together and attached with a single configuration file is what is called a deployment. When you perform a deployment. Google Cloud Deployment manager would create a manifest file.

A Manifest is a read only object containing the deployment configuration. The deployment configuration includes any templates that you have made use of inside your configuration file. This is automatically generated by Deployment Manager and it includes fully expanded resource list. If you want to do any troubleshooting, if you want to find details of all the resources which were created by an earlier deployment, you can go and look at Manifests. Next up. We talked about cloud deployment. Manager I’m sure you’re having a wonderful time and I’ll see you on the next step.

3. Step 03 – Getting Started with Cloud Marketplace

Welcome back. In this step, let’s talk about cloud marketplace or the cloud launcher. Installing custom software might involve setting up multiple resources. For example, if you want to install WordPress, you would need to set up a compute engine and a relational database. How do you simplify the setup of custom software solutions like WordPress or even more complex things like SAP Hana suit on GCP? The way you can simplify them is by using Cloud Marketplace. It is a central repo of easily deployable apps and data sets. This is very, very similar to App Store or Play Store for mobile applications. You can search and install a complete stack onto GCP platform.

There are commercial solutions like SAP Hana, there are open source packages like Lamp, WordPress, Cassandra Jenkins, et cetera. There are products with variety of OS licenses, bring your own license repaid. And there are apps and data sets under different categories data sets, developer tools, operating systems, et cetera. Whenever you select a solution in Cloud Marketplace, you can see what are the different components, software and infrastructure that is needed. And you can also see the approximate price. So in Google Cloud, if you want to install WordPress, or if you want to set up Jenkins, or if you’d want to set up a Lamp stack, you can go to Cloud Marketplace and easily deploy the solution.

4. Step 04 – Demo – Cloud Marketplace and Deployment Manager

Welcome to this combined demo of two different services. In the last steps, we talked about Marketplace and we also talked about Cloud Deployment Manager. Let’s have a demo for both of them together. If you go over to the menu and pick up Marketplace, this is where you would go to if you want to do any custom software installation. One of the things that you can do is to check if it’s available in Marketplace. If you if you’d want to install a WordPress blog, or if you’d want to install Elasticsearch, or if you’d want to install Apache Kafka, marketplace allows you to easily deploy all these solutions. As you can see on the left hand side menu, there are a wide variety of software that you can install using Marketplace.

There are apps that make use of virtual machines. There are apps that make use of Kubernetes. There are data sets available. There are also operating systems available and a number of databases as well. As we discussed earlier, if you want to install commercial solutions like SAP Hana or open source packages like Lamp, WordPress, Cassandra or Jenkins, you might want to consider using Marketplace. What we’ll do now is we’ll try and deploy WordPress. If you are not familiar with WordPress, WordPress is a simple blogging platform.

To install WordPress, there are a lot of steps which are involved. You need to set up WordPress software, you need to set up a small MySQL database, and you need to get them to talk to each other. Instead of doing all that work manually, marketplace helps you to automate the entire process. Let’s see how it works. All that you need to do is to click WordPress in here. Once you go in, you’d be able to launch WordPress. So you don’t want to create a new WordPress deployment. I’ll take the default name which is suggested WordPress one. You can rename it to my first WordPress or something like that. I’ll choose the defaults which are suggested for Zone Machine type.

If you want, you can enter your administrator email address. So I’ll actually enter I’ll enter my email ID in here and let’s use the defaults for all the things that it’s suggesting. And you can see that Http traffic is allowed from the Internet because you don’t allow people to access your blog. And at the end, I would just say deploy enough. The interesting thing is you see that we have now taken to Deployment Manager. We launched WordPress from Marketplace. Enough. We are brought into Deployment Manager where we see that there is a deployment in progress. Now, what’s the link? How is marketplace linked to deployment? Manager what you can do is to go over to Overview.

So if you go over to the overview and if you scroll down a little so if I scroll down on the right hand side a bit, you’d be able to see expanded config. If you click expanded config, you’d be able to see the entire template which is being used to create our deployment. Earlier we talked about the fact that when we are using Deployment Manager, we create a template file. And using that template file, a set of resources can be provisioned for us. And that’s exactly what’s happening in here as well. There’s a deployment file for WordPress and we are making use of that deployment file to create our WordPress deployment. You can see that in the resources of this specific WordPress is a virtual machine which is being created.

There is storage which is being provisioned, and there is a lot of configuration which is also present in here. And this is a template which is used to set up our WordPress deployment. And you can see that the WordPress has been deployed. So when we are trying to create WordPress from Marketplace, what is happening is a deployment configuration is created, a YAML file is being created and the YAML file is what is used to create the WordPress for us. When you’re using Marketplace, this YAML is automatically created for us. However, you can also use Deployment Manager with your custom configuration. So you can also write your own YAML files and you can deploy them using Deployment Manager as well.

Let’s not worry about it for now. For now, let’s see what’s happening with the WordPress installation. What you can do is to go to WordPress. So click the WordPress in here and then you’d be able to see all the details around your WordPress installation. So if you click the first link which is present in here, it would take you to the blog itself. So this is the blog which we have just created on WordPress, WordPress on Google Compute Engine, and there’s a Hello World post. You can click the post and go to the post and go back if you want. And if you want to create an additional post, what you can actually do is to use the Admin URL.

So go to the Admin URL, click that again, and the user ID and password should be here. So WordPress admin user WordPress admin password is in here. So you can use the user ID and you can also use the password which is present in here. And I’ll say not now for now. And this is your administration for the WordPress blog. Now, if you want to actually create a new post, you can say Post add new. I’ll close this out and I’ll say Learning GCP and I would type in Marketplace and Deployment Manager and let’s do a publish of this. Let’s publish again. Well, it says it’s live. Let’s go and refresh the blog URL. You can see that it’s live. We can see our post in here. In the step. We created a simple WordPress deployment using Marketplace.

When we tried to launch WordPress from Marketplace, a Deployment Manager template was created for us. Using the template, there was a deployment which was performed. If you want to customize the WordPress installation, there are a lot of other instructions which are present in here as well. Now, I can go back to seeing the list of deployments represent in here and I can actually delete the deployment also. So I can say I want to delete this specific deployment and go ahead and say delete all this would delete the deployment. In this step, we saw how to make use of Marketplace to deploy custom solutions. I’m sure you’re having a wonderful time and I’ll see you in the next step.

Comments
* The most recent comment are at the top

Interesting posts

Impact of AI and Machine Learning on IT Certifications: How AI is influencing IT Certification Courses and Exams

The tech world is like a never-ending game of upgrades, and IT certifications are no exception. With Artificial Intelligence (AI) and Machine Learning (ML) taking over everything these days, it’s no surprise they are shaking things up in the world of IT training. As these technologies keep evolving, they are seriously influencing IT certifications, changing… Read More »

Blockchain Technology Certifications: Exploring Certifications For Blockchain Technology And Their Relevance In Various Industries Beyond Just Cryptocurrency

Greetings! So, you’re curious about blockchain technology and wondering if diving into certifications is worth your while? Well, you’ve come to the right place! Blockchain is not just the backbone of cryptocurrency; it’s a revolutionary technology that’s making waves across various industries, from finance to healthcare and beyond. Let’s unpack the world of blockchain certifications… Read More »

Everything ENNA: Cisco’s New Network Assurance Specialist Certification

The landscape of networking is constantly evolving, driven by rapid technological advancements and growing business demands. For IT professionals, staying ahead in this dynamic environment requires an ongoing commitment to developing and refining their skills. Recognizing the critical need for specialized expertise in network assurance, Cisco has introduced the Cisco Enterprise Network Assurance (ENNA) v1.0… Read More »

Best Networking Certifications to Earn in 2024

The internet is a wondrous invention that connects us to information and entertainment at lightning speed, except when it doesn’t. Honestly, grappling with network slowdowns and untangling those troubleshooting puzzles can drive just about anyone to the brink of frustration. But what if you could become the master of your own digital destiny? Enter the… Read More »

Navigating Vendor-Neutral vs Vendor-Specific Certifications: In-depth Analysis Of The Pros And Cons, With Guidance On Choosing The Right Type For Your Career Goals

Hey, tech folks! Today, we’re slicing through the fog around a classic dilemma in the IT certification world: vendor-neutral vs vendor-specific certifications. Whether you’re a fresh-faced newbie or a seasoned geek, picking the right cert can feel like trying to choose your favorite ice cream flavor at a new parlor – exciting but kinda overwhelming.… Read More »

Achieving Your ISO Certification Made Simple

So, you’ve decided to step up your game and snag that ISO certification, huh? Good on you! Whether it’s to polish your company’s reputation, meet supplier requirements, or enhance operational efficiency, getting ISO certified is like telling the world, “Hey, we really know what we’re doing!” But, like with any worthwhile endeavor, the road to… Read More »

img