반응형

GCP VM Instance 화면에서 ssh 버튼을 통하지 않고 Cloud Shell 에서 직접 SSH 를 접근 할 경우 쓰는 방법이다.

 

gcloud compute ssh --project [PROJECT_ID] --zone [ZONE] [INSTANCE_NAME]

 

cloud Shell 에 접근한후 다음과 같이 하면 된다.

 

먼저 instance list 를 조회한다.

 

gcloud compute instances list
NAME                          ZONE           MACHINE_TYPE   PREEMPTIBLE  INTERNAL_IP  EXTERNAL_IP    STATUS
myinstance       us-central1-a  n1-standard-1                          10.128.0.2   146.148.43.62  RUNNING

 

그리고 위에 명령어처럼 아래와 같이 접근을 하면 된다.

gcloud compute ssh --zone us-central1-a myinstance

 

간단하네~

 

참고 사이트

https://cloud.google.com/compute/docs/instances/connecting-to-instance

728x90
반응형
반응형

Google Associate Cloud Engineer Exam Dumps 2019

Udemy 에 있는 Dump 풀면서 적은 오답노트들..

 

## failover replica

Failover replica helps provides High Availability for Cloud SQL. The failover replica must be in the same region as the primary instance.

 

 ## Cloud Datastore

 A scalable, fully managed NoSQL document database for your web and mobile applications. Semistructured application dataHierarchical dataDurable key-value dataUser profilesProduct catalogsGame state.

Bigtable is not an ideal storage option for state management.

 

## BigQuery

BigQuery is a good storage option with analysis capability. Also, the access to the data can be controlled using ACLs and Views. BigQuery uses access control lists (ACLs) to manage permissions on projects and datasets

Cloud Storage is a good storage option but does not provide direct analytics capabilities.

 

 ## HTTP load Balancer

HTTP load balancer support global access. HTTP(S) load balancing can balance HTTP and HTTPS traffic across multiple backend instances, across multiple regions. Your entire app is available via a single global IP address, resulting in a simplified DNS setup. HTTP(S) load balancing is scalable, fault-tolerant, requires no pre-warming, and enables content-based load balancing. For HTTPS traffic, it provides SSL termination and load balancing.

 

 ## Big Table

Cloud Bigtable is the most performant storage option to work with IoT and time-series data. Google Cloud Bigtable is a fast, fully managed, highly-scalable NoSQL database service. It is designed for the collection and retention of data from 1TB to hundreds of PB.

 

## Testing application

Google Compute Engine managed instance group can help the testing application to scale to reduce the amount of time to run tests.

 

## Cloud SQL
Failover replica must be in the same region.

## App Engine Standard, Flexible
The App Engine Standard Environment provides rapid scaling as compared to App Engine Flexible Environment and is ideal for applications requiring quick start times and handle sudden and extreme spikes.

 

Feature - SSH-debugging

Standard environment - No

Flexible environment - Yes


## App Engine Deployer
App Engine Deployer gives write access only to create a new version.

## roles/storage.objectCreator
allows users to create objects. Does not give permission to view, delete, or overwrite objects.

 

## Instance Group auto-healing

performs a health check and if the application is not responding the instance is automatically recreated

 

## Kubernetes Cluster auto-repairing

as the resiliency and high availability can be increased using the node auto-repair feature, which would allow Kubernetes engine to replace unhealthy nodes.

 

## gsutil options

Multi-threaded/processed: Useful when transferring large number of files.

Parallel composite uploads: Splits large files, transfers chunks in parallel, and composes at destination.

Retry: Applies to transient network failures and HTTP/429 and 5xx error codes.

Resumability: Resumes the transfer after an error.

 

## command

gcloud compute instances create "preempt" --preemptible --no-boot-disk-auto-delete 

gcloud container clusters resize --num-nodes= --size=

gcloud container clusters update --min-nodes=

gcloud deployment-manager deployments update

kubectl set image deployment nginx nginx=nginx:1.9.1]

gcloud app deploy --project 

 

728x90
반응형

+ Recent posts