Google Cloud Platform Guide

Andre Vianna
My Dev Zone
Published in
3 min readJan 21, 2022

Mains Services & MicroServices

Google Cloud Platform (GCP)

Summary

  1. Virtual Machine
  2. Create SSH Keys
  3. Kubernete
  4. Export / Import Volumes

1. Virtual Machine

1.1) Configure HTTPS with Google VM

1.1.1) Chek Operating System

  • Check OS
lsb_release -a

1.1.3) Chek CertBot

  • certbot.eff.org
sudo snap install core; sudo snap refresh coresudo snap install --classic certbotsudo ln -s /snap/bin/certbot /usr/bin/certbotsudo certbot --apache (error)sudo certbot certonly --apachesudo certbot --nginxsudo certbot --nginx -d xxxxxx
cd /etc/nginx/sites-availablesudo apt install -y software-properties-commonsudo add-apt-repository ppa:certbot/certbotsudo apt update
sudo apt install -y python-certbot-nginx
sudo apt-get install python-certbot-nginx sudo apt install -y python3-certbot-nginxpython3 --version

sudo apt install -y python3-certbot-nginx
  1. 1.4) Install NGinx
sudo apt install -y nginxcd /etc/nginxll
nano /etc/nginx/sites-availabable/default
  • .conf
server {root /var/www/html;listen 80;listen [::]:80;server_name sxxxxxecops.bxxxxom;location / {proxy_pass http://127.0.0.1:8080;proxy_redirect off;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Host $server_name;}}
sudo ln -s /etc/nginx/sites-available/secops.bioinformaticalabs.com.conf secops.bioinformaticalabs.com.conf
biolabs@instance-1:/etc/nginx/sites-enabled$ ls -al
sudo service nginx restart

3. Kubernetes

4. Export / Import Volumes Google Cloud

--

--

Andre Vianna
My Dev Zone

Software Engineer & Data Scientist #ESG #Vision2030 #Blockchain #DataScience #iot #bigdata #analytics #machinelearning #deeplearning #dataviz