Google Cloud Platform

What is the Google Cloud?.

Google's Google Cloud Platform (GCP) is a suite of cloud computing services operating on the same infrastructure as the internal Google usage of Google products, including Google Search, Gmail, file storage, and YouTube.

In addition, it offers modular cloud services, including computing, data storage, data analysis and machine learning, and many management tools.

 
Google Cloud Platform provides infrastructure as service, platform as service and serverless computing environments.

compute-engine-512-color.png

Google Compute Engine

The Google Compute Engine allows users to start VM on demand. Furthermore, VMs may run standard images or generated user-specific images.

virtual_private_cloud.png

Google VPC Network

Google Cloud VPC is a global, scalable, and adaptable service. It manages networking for the Compute Engine VM, GKE containers, and App Engine environment.

cloud-storage-512-color.png

Google Cloud Storage

Google Cloud Storage is a RESTful web service that provides online file storage for storage and data access on the Google Cloud Platform.

cloud_run.png

Google Cloud Run

Cloud Run is a managed computing platform that lets you run containers triggered by requests or events. In addition, Cloud Run is a serverless application:

cloud_sql.png

Google Cloud SQL

Cloud SQL is a fully-managed database service for Google Cloud Platform that lets you set up, maintain, manage, and administer your relational databases. Cloud SQL works with MySQL, PostgreSQL, and SQL Server databases.

container_registry.png

Google Container Registry

Container Registry is a service that allows you to store your private container images. It provides a subset of the functionalities offered by Artifact Registry, a universal repository manager and Google Cloud's preferred solution for managing container images and other artifacts.

google_kubernetes_engine.png

Google Kubernetes Engine

GKE (Google Kubernetes Engine) is a management and orchestration framework for Docker containers and clusters running on Google's public cloud services. Kubernetes, Google's open-source container management solution, provides the foundation for Google Kubernetes Engine.

Frequently Asked Questions

Where can docker containers be run in GCP?.

You can run docker containers on Google Compute Engine, Cloud Run, and Kubernetes Engine.

Google Compute Engine: 

Step-1: Create a VM Instance with Linux. For instance, Ubuntu Pro and install the Docker engine. 

Step-2: Run your preferred docker container image. To learn more about how to install Docker containers on Google Compute Engine. Visit the example below. 

https://www.incapio.com/post/install-rancher-on-compute-engine-with-docker-google-cloud-gcp

Google Cloud Run: 

Step-1: Pull and Push the docker image to the Google container registry

Step-2: Create a new service, select the container registry image, and deploy the service. To learn more about how to install Docker containers on Google Cloud Run. Visit the example below.  

https://www.incapio.com/post/install-drupal-on-cloud-run-google-cloud-gcp

Google Kubernetes Engine: 

Step-1: Pull and Push the docker image to the Google container registry

Step-2: Deploy a new cluster with your prefered image from the container registry.

How to connect SQL workbench to the google cloud instance?.

Step-1: Create a Cloud SQL Instance with MySQL. 
Step-2: Authorize network access. To learn more about how to "Authorise Networks." Visit the example below. 

https://www.youtube.com/watch?v=SxNEhTcGz90

Step-3: Copy MySQL instance public IP address. 
Step-4: Login into the Cloud SQL instance using MySQL workbench with Public IP and default administrator username(root) and password.

How to connect to google cloud via FTP?.

Step-1: Create a VM instance

Step-2: Add an RSA2 or ECDSA public key to project or VM instance metadata. 

Step-3: You can use Filezilla or ZOC Terminal with SFTP using the private key. Copy your VM instance external IP address, Connect using the quick connect option in any specified applications above and use your username and private key to log in. To learn more about how to generate SSH key pairs. Visit the example below. 

https://www.youtube.com/watch?v=TPUXqRqhHJM

Step-4:(Optional): You can also use FQDN to log into the VM instance. 

What is the best way to set up a hostname for a google cloud?.

Using three methods, you can assign a hostname to a Compute Engine VM instance. 

Method-1: Assign a hostname while creating a new VM instance using the networking section. 

Method-2: Assign a hostname using DHCP hook for existing VM instances. 

Method-3: Assign a hostname using VM instance metadata for new or existing VM instances. To learn more about assigning or changing the hostname to a Google Compute Engine VM instance. Visit the example below. 

https://www.incapio.com/post/how-to-change-the-hostname-of-a-compute-engine-in-google-cloud-gcp

How to check images in the google container registry?.

There are three ways to check images in the container registry. 
Method-1: Use the Google container registry images interface in the cloud console. Log in to the Cloud Console and navigate to the container registry. 
Method-2: Use Cloud SDK and run the following command. 
gcloud container images list --repository=<hostname>/<project-id>
Substitute the hostname and project with yours. 
Method-3: Activate the cloud shell in the cloud console and run the following command. 
gcloud container images list 

Which role gives access to container registry in google cloud?.

The following list describes the Cloud Storage roles that hold the permissions necessary by Container Registry.

Storage Object Viewer (roles/storage.objectViewer): Pull images from an existing registry (read-only)

Storage Legacy Bucket Writer (roles/storage.legacyBucketWriter): You can push (write) images to and pull (read) images from an existing registry host in a project.

Storage Admin (roles/storage.admin): Create the associated storage buckets and add registry hosts to Google Cloud projects.

How to run a nodejs app on google cloud?

You can run node js applications using multiple Google cloud services. For instance, you can use Google Compute Engine, App Engine, or Cloud Run to install Node.js applications. Kindly refer to the following article to learn more. 

https://www.incapio.com/post/install-nodebb-forum-on-compute-engine-google-cloud-gcp