[GKE] kubectl scale kubectl explain deployment.spec.replicas kubectl scale deployment hello --replicas=5 kubectl get pods | grep hello- | wc -l kubectl scale deployment hello --replicas=3 kubectl get pods | grep hello- | wc -l Google Cloud Platform 2020.05.23
[GKE] call http by curl, kubectl curl -ks https://`kubectl get svc frontend -o=jsonpath="{.status.loadBalancer.ingress[0].ip}"` Google Cloud Platform 2020.05.23
[GKE] kubectl explain kubectl explain deployment kubectl explain deployment --recursive kubectl explain deployment.metadata.name Google Cloud Platform 2020.05.23
[GKE] kubectl port-forward local port 10080 을 pod port 80 과 매핑 kubectl port-forward monolith 10080:80 curl http://127.0.0.1:10080 Google Cloud Platform 2020.05.21
[GKE] Deploying Nginx on GKE kubectl create deployment nginx --image=nginx:1.10.0 kubectl get pods kubectl expose deployment nginx --port 80 --type LoadBalancer kubectl get services curl http://:80 Google Cloud Platform 2020.05.19
[GKE] Deploying an application to the cluster gcloud config set compute/zone us-central1-a gcloud container clusters create [CLUSTER-NAME] kubectl create deployment hello-server --image=gcr.io/google-samples/hello-app:1.0 kubectl expose deployment hello-server --type=LoadBalancer --port 8080 kubectl get service Access : http://[EXTERNAL-IP]:8080 gcloud container clusters delete [CLUSTER-NAME] Google Cloud Platform 2020.05.19
[VM] add new disk 1. Add new disk when creating an instance Click > Management, security, disks, networking, sole tenancy. Click > Disks Click > Add new disk. 2. mount disk $ sudo mkdir -p /home/minecraft $ sudo mkfs.ext4 -F -E lazy_itable_init=0,\ lazy_journal_init=0,discard \ /dev/disk/by-id/google-minecraft-disk $ sudo mount -o discard,defaults /dev/disk/by-id/google-minecraft-disk /home/minecraft Google Cloud Platform 2020.05.10
[VM] run startup script, shutdown script For Custom metadata key value startup-script-url https://storage.googleapis.com/cloud-training/archinfra/mcserver/startup.sh shutdown-script-url https://storage.googleapis.com/cloud-training/archinfra/mcserver/shutdown.sh Google Cloud Platform 2020.05.10
[Storage] gsutil 버킷 생성 gsutil mb gs://{bucket-name} 버킷 조회 gsutil ls gs://{bucket-name} Google Cloud Platform 2020.05.10