🐥
The Tech Toolbox
Visit My Website!LinkedIn Profile
  • ✍️Introduction
  • ✍️Laptop Setup Guide
  • ✍️Quotes
  • Interview Preparation
    • 🔥Topics To Cover
    • 🔥System Design
    • 🔥Google Interview
      • Data Structures
      • Algorithms
      • System Design
      • Programming Concepts
      • Behavioral
    • 🔥Documents
  • Question Answers
    • ⭐Question Set 1
    • ⭐Question Set 2
    • ⭐Question Set 3
    • ⭐Microservice Architecture
    • ⭐Company-wise
      • Publicis Sapient
        • Core Java Section
        • Solutions & Tools
        • Microservices
        • Mix Questions
      • Mastercard
      • Finicity
  • Notes
    • 🎯Java Fundamentals
      • Time & Space Complexity
      • Design Patterns
      • Collections
      • Java 8 Features
      • JVM Internals
      • Generics
      • Multithreading
    • 🎯Spring Fundamentals
      • Spring Boot
      • Spring AOP
      • Spring Cloud
      • Spring Security
      • Spring Batch
    • 🎯Database
      • Oracle SQL
        • Aggregate Functions
      • MongoDB
        • Commands
        • Aggregate Query
      • Distributed Transaction
    • 🎯Apache Kafka
      • Kafka with Spring Boot
      • Partitions
    • 🎯Redis
    • 🎯Mockito
    • 🎯Docker
      • Commands
    • 🎯Kubernetes
      • Commands
    • 🎯Prometheus
    • 🎯Build Tools
      • Gradle
      • Apache Maven
    • 🎯Architecture
      • API and Integration Strategy
  • ⚓Developer Reference
    • ❄️GCP
    • ❄️Linux
  • Structured Learning Plan
    • 🍉Java Multithreading
    • 🍉Data Structures
    • 🍉Spring AOP
    • 🍉Transaction Management
    • 🍉MongoDB
    • 🍉Design Patterns
    • 🍉System Design
Powered by GitBook
On this page

Was this helpful?

  1. Developer Reference

GCP

Compute

Description
Command

Create a Compute Engine instance

gcloud compute instances create [INSTANCE_NAME] --machine-type=[MACHINE_TYPE] --image-project=[IMAGE_PROJECT] --image-family=[IMAGE_FAMILY]

SSH into a Compute Engine instance

gcloud compute ssh [INSTANCE_NAME]

Create a Kubernetes Engine cluster

gcloud container clusters create [CLUSTER_NAME]

Deploy a container to a Kubernetes Engine cluster

kubectl create deployment [DEPLOYMENT_NAME] --image=[IMAGE_NAME]

Scale a Kubernetes Engine deployment

kubectl scale deployment [DEPLOYMENT_NAME] --replicas=[REPLICA_COUNT]

View Kubernetes Engine cluster information

gcloud container clusters describe [CLUSTER_NAME]

Storage

Description
Command

Create a Cloud Storage bucket

gsutil mb gs://[BUCKET_NAME]

Copy files to a Cloud Storage bucket

gsutil cp [LOCAL_FILE_PATH] gs://[BUCKET_NAME]/[REMOTE_FILE_PATH]

Download files from a Cloud Storage bucket

gsutil cp gs://[BUCKET_NAME]/[REMOTE_FILE_PATH] [LOCAL_FILE_PATH]

List objects in a Cloud Storage bucket

gsutil ls gs://[BUCKET_NAME]

Networking

Description
Command

Create a VPC network

gcloud compute networks create [NETWORK_NAME]

Create a firewall rule with the specified name and allows traffic on the specified protocol and port from the specified IP range to instances with the specified tag

gcloud compute firewall-rules create [FIREWALL_RULE_NAME] --allow [PROTOCOL]:[PORT] --source-ranges [IP_RANGE] --target-tags [TAG]

Other

Description
Command

List available GCP projects

gcloud projects list

Set the active GCP project to the one with the given PROJECT_ID

gcloud config set project [PROJECT_ID]

PreviousAPI and Integration StrategyNextLinux

Last updated 2 years ago

Was this helpful?

⚓
❄️