Skip to main content

instances and firewall with GCP CLI

  1. In Cloud Shell, paste and run the following commands to create a few instances:
for i in {1..3}; \
do \
  gcloud compute instances create "nginxstack-$i" \
  --machine-type "f1-micro" \
  --tags nginxstack-tcp-443,nginxstack-tcp-80 \
  --zone us-central1-f \
  --image   "https://www.googleapis.com/compute/v1/projects/bitnami-launchpad/global/images/bitnami-nginxstack-1-10-2-0-linux-debian-8-x86-64" \
  --boot-disk-size "200" --boot-disk-type "pd-standard" \
  --boot-disk-device-name "nginxstack-$i"; \
done
  1. Run the following command to create a firewall rule to allow external traffic to the instances:
gcloud compute firewall-rules create nginx-firewall \
 --allow tcp:80,tcp:443 \
 --target-tags nginxstack-tcp-80,nginxstack-tcp-443

Comments

Popular posts from this blog

AWS Cheat Sheet

lets Start..!

Here this is Srikanth 4 u Starting this blog to update u some important feeds which u have to know.this blog updates u in all aspects.. hope u would like my service.. and 1more thing, i have some spell mistakes in my typing, sorry for the inconvenience in advance, but i hope u can understand the meaning even it is so.. so guyzzz stay tuned..

Plex is a free media server and player software | Setup and Installation

WHAT IS PLEX? Plex is a free media server and player software that you can use to organize, stream, and share your videos, photos, and music. Think of it as your own personal Netflix service for your media. You set up a Plex server and can then use the Plex client apps on your web browser, phone, TV, and more to access your media. See the official Plex video  here  for more details.  This guide will walk you through installing Plex, setting up remote access...I will be using an Ubuntu 16 server-minimal installation for this guide, but Plex is available for a very wide variety of devices and systems. The installation steps may vary some, but the management and access will be very similar across all options. REQUIREMENTS The requirements here are pretty simple as most of this will be using the Plex web GUI. You do need a few things to get started: A server to install Plex on (If your server does not have a GUI) A computer to configure Plex from the Web interf...