Google has started to give away credits for hosting websites on the Google Cloud Platform. If you have a website with a low traffic, this video will show you how.
You can set up your own virtual server. It is almost the same process as buying a VPS package. The downside is that you need to do it yourself. Or you can use a marketplace solution to install the packages. We will stick with the simple way and use the existing.
Now let’s get to the deployment manager. Click on deployment and then click on go to marketplace. From here, you can choose which solution to deploy on your project.
Click Marketplace and click Launch on compute engines. Here you can change the deployment’s name if necessary. You can choose the Zone where your VM instance will reside. However, you cannot change the Zone to suit the audience. Next is the VM instance. Here you can select the machine type and RAM. For small to medium static websites, the f1 micro should suffice. The disk size is next. It defaults to 10 gigs, but free tier allows for up to 30 GB. After that, turn on our web traffic and then click deploy. Wait for a while.
Next, we will reserve our static IP address. Go to your VM instance, select view Network detail, then select External IP Address. You will notice that the current IP type of our server is ephemeral. This means it can change over time. So let’s set it up. To connect to your server, click the SSH button. After you enter your domain name, you will be asked for your SSL settings.
The latest version will take between five and ten minutes. In the meantime, let’s setup WordPress. Go to your IP address, select the language, and then create a WordPress admin account. Now you can log in to customize your website. Next, update your DNS settings to point to this VM instance address. Your website should now be ready to go.
First, allocate RAM to a file of 1 gig in size. Next, set the file permission and select the file to be used for a swap. Finally, turn on the swap. The swap setup is temporary. You can see the stack driver for CPU. For RAM, you will need an agent. To install an agent, you will need to use Google provided commands. Pull the script and run it. If you want to check the status, it will fail.
First, enable the meta setting for our instance by going back to the VM instance. Next, click Edit unchanged monitoring metadata between 0 and 1. Then we restart the service and verify the status. Once it’s running, you will see a checkmark on Stackdriver. First, enter GCE VM instance as resource type. Then select memory usage. Now you can view your search statistic report at any moment.