Skip to content

Instantly share code, notes, and snippets.

View bhanu-prakashl's full-sized avatar

BHANU PRAKASH bhanu-prakashl

View GitHub Profile
7003 gcloud compute instances list
7004 gcloud auth login
8152 gcloud compute instances stop instance-2
8153 gcloud config set project dark-caldron-89709
8154 gcloud components update
8155 gcloud compute instances stop instance-2
8156 gcloud compute instances list
8157 gcloud compute instances start instance-2
8189 gcloud compute forwarding-rules list
8190 gcloud compute networks describe default --format json
gcloud compute instance-groups unmanaged create taiwan \
--zone asia-east1-a
gcloud compute instance-groups unmanaged add-instances taiwan \
--instances $(kubectl get nodes \
--context taiwan \
--output=jsonpath='{range .items[*]}{.metadata.name},{end}') \
--zone asia-east1-a
gcloud compute instance-groups set-named-ports taiwan \
@bhanu-prakashl
bhanu-prakashl / AzureCheatSheet.md
Created April 11, 2022 18:14 — forked from plasx/AzureCheatSheet.md
Azure Cheat Sheet

Listing Images via Azure CLI

az vm image list --output table

Deleting certain resoruces in a resource group

List resource groups in a subscription

az resource list
@bhanu-prakashl
bhanu-prakashl / 00.readme.md
Created March 30, 2022 17:06 — forked from seesharprun/readme.md
Authoring DevOps pipelines using YAML in GitHub Actions
We couldn’t find that file to show.
@bhanu-prakashl
bhanu-prakashl / Kubernetes - Tips.md
Created February 26, 2022 18:36 — forked from savishy/Kubernetes - Tips.md
Kubernetes Cheatsheet

About kubeconfig and Sharing kubeconfigs

When you create a Google Cloud Container cluster with gcloud container clusters create it also generates a kubeconfig entry. See the output below:

Creating cluster petclinic...done.
Created [https://container.googleapis.com/v1/projects/gcloud-testing-vish/zones/asia-east1-a/clusters/petclinic].
kubeconfig entry generated for petclinic.
NAME       LOCATION      MASTER_VERSION  MASTER_IP       MACHINE_TYPE   NODE_VERSION  NUM_NODES  STATUS