Skip to content

Instantly share code, notes, and snippets.

@rolroralra
Last active November 3, 2021 05:36
Show Gist options
  • Save rolroralra/6c182fe67573991e347f9d25d5f332d0 to your computer and use it in GitHub Desktop.
Save rolroralra/6c182fe67573991e347f9d25d5f332d0 to your computer and use it in GitHub Desktop.
Google Cloud SDK (gcloud)

How to install Google Cloud SDK (gcloud)

https://cloud.google.com/sdk/docs/downloads-interactive

How to connect GKE (Google Kubernetes Engine)

# Create GKE
$ gcloud container clusters create <cluster-name> --num-nodes 3

# List clusters
$ gcloud container clusters list

# Connect to GKE
$ gcloud container clusters get-credentials <cluster-name> --zone asia-northeast1-a --project <project-id>

# ssh connect to GCP instance
$ gcloud compute instances list

$ gcloud compute ssh <instance-name>

# Set current project in session
$ gcloud config set project <project-id>

GCM, FCM

Google Cloud Messaging
Firebase Cloud Messaging

https://joshua1988.github.io/web-development/fcm-gcm-difference/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment