Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for gcloud

September 29, 2020

GCP Create Internal IP Reservation

Here’s how to create an internal IP reservation in GCP.

gcloud compute addresses create my-private-ip-reservation \
--addresses 10.128.0.15 \
--region us-central1 \
--subnet default \
--project project-id

gcloud compute addresses create my-private-ip-reservation \ --addresses 10.128.0.15 \ --region us-central1 \ --subnet default \ --project project-id

To list your reserved IPs.

gcloud compute addresses list \
--project project-id

gcloud compute addresses list \ --project project-id

September 12, 2020

Extend Regional Persistent Disks

Here’s the command to extend your regional persistent disks.

gcloud compute disks resize disk-name \
--size 100 \
--project project-id \
--region us-central1

gcloud compute disks resize disk-name \ --size 100 \ --project project-id \ --region us-central1

Display the updated disk details.

gcloud compute disks list \
--filter="name=disk-name" \
--project project-id

gcloud compute disks list \ --filter="name=disk-name" \ --project project-id

August 19, 2020

Git Bash Path

Here’s how to add or edit the PATH in Git Bash. Edit your bash_profile.

vi ~/.bash_profile

vi ~/.bash_profile

Set your path by adding the new path at the end.

PATH="/c/WINDOWS/system32:/c/Users/firstname.lastname/google-cloud-sdk/bin"

PATH="/c/WINDOWS/system32:/c/Users/firstname.lastname/google-cloud-sdk/bin"

The example path listed above is truncated for brevity.

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page »
  • Cloud
  • Linux
  • Git

Copyright © 2012–2021