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

Gate free Material,GATE Question Papers ,GATE Coaching Centers, GATE 2013 Tricks, GATE Sample Paper,GATE Mock Test, GATE Videos Courses

hie friends here is the best website where u get all the information about gate.  http://www.gate.examsavvy.com yes, this is the best site, where u can get all the info abt gate.. Graduate Aptitude Test in Engineering GATE 2013 Exam, Syllabus, Coaching, Study materials, GATE Question Papers and GATE Preparation Books   About GATE Examination Graduate Aptitude Test in Engineering (GATE) is an all India examination administered and conducted jointly by the Indian Institute of Science and seven Indian Institutes of Technology on behalf of the National Coordinating Board - GATE, Department of Education, Ministry of Human Resource Development (MHRD), Government of India.The GATE Exam committee, which comprises of representatives from the administering institutes, is the sole authority for regulating the examination and declaring the results. GATE is conducted through the constitution of eight zones. The zones and the corresponding administrative institute...

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...