본문 바로가기
728x90
반응형

GCP20

[Qwiklabs]Migrate a MySQL Database to Google Cloud SQL Tasks Check that there is a Cloud SQL instance Check that there is a user database on the Cloud SQL instance Check that the blog instance is authorized to access Cloud SQL Check that wp-config.php points to the Cloud SQL instance Check that the blog still responds to requests 1. Create Cloud SQL 2. MySql dump 를 export 한다. 참고 ) https://cloud.google.com/solutions/migrating-mysql-to-cloudsql-concep.. 2020. 3. 26.
[Qwiklabs]Scale Out and Update a Containerized Application on a Kubernetes Cluster Tasks Check that there is a tagged image in gcr.io for echo-app:v2 Echo-app:v2 is running on the Kubernetes cluster The Kubernetes cluster deployment reports 2 replicas. The application must respond to web requests with V2.0.0 1. 파일 압축 풀기 및 Docker Build - 압축 풀기 tar -xvzf resources-ehco-web-v2.tar.gz - PROJECT_ID 환경변수 등록 export PROJECT_ID=$(gcloud info --format='value(config.project)') - Image 를 .. 2020. 3. 26.
[Qwiklabs]Build and Deploy a Docker Image to a Kubernetes Cluster Tasks An application image with a v1 tag has been pushed to the gcr.io repository A new Kubernetes cluster exists (zone: us-central1-a) Check that an application has been deployed to the cluster Test that a service exists that responds to requests like Echo-app 1. 클러스터 생성 gcloud beta container --project "qwiklabs-gcp-00-337f72711928" clusters create "echo-cluster" --zone "us-central1-a" --no-ena.. 2020. 3. 26.
[GCP] Cloud Shell 에서 Instance 접근 방법 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 그리고 위에 명령어처럼 아래와 같이 접근을.. 2020. 3. 16.
[Qwiklabs]Configure Secure RDP using a Windows Bastion Host Tasks A new non-default VPC has been created The new VPC contains a new non-default subnet within it A firewall rule exists that allows TCP port 3389 traffic ( for RDP ) A Windows compute instance called vm-bastionhost exists that has a public ip-address to which the TCP port 3389 firewall rule applies. A Windows compute instance called vm-securehost exists that does not have a public ip-address.. 2020. 3. 15.
[Qwiklabs] Configure a Firewall and a Startup Script with Deployment Manager Qwiklab 에 있는 코스중 하나인 Challenge: GCP Architecture 중 Configure a Firewall and a Startup Script with Deployment Manager 를 진행했다. 그렇게 어렵지 않았는데 결과적으로 채점시스템의 오류로 인해서 거의 3시간의 시간을 투자했다. 처음에 하다가 오류를 못찾아서 타임오버나고, 두번째에도 동일한 곳에서 진행이 안되서 끙끙대다가 서비스데스크에 문의한 결과 채점시스템의 오류였다. (내시간... ㅠㅠ) Task 목록은 아래와 같다. A new Deployment Manager deployment has been created The deployment includes a virtual machine that has an embe.. 2020. 3. 6.
GCP Cloud Architect Practice Exam 오답 확인 GCP Practice Exam 에서 풀고나서 오답에 대한 내용 체크한거. (https://cloud.google.com/certification/practice-exam/cloud-architect?hl=ko) 코로나때문에 시험을 미룬게 잘된건지 아닌지 모르겠다..ㅠㅠ TerramEarth case study Q. Because you do not know every possible future use for the data TerramEarth collects, you have decided to build a system that captures and stores all raw data in case you need it later. How can you most cost-effectively a.. 2020. 2. 28.
[GCP]App Engine App Engine 은 2가지 타입이 존재한다. 1. Standard * Easily deploy your application * Autoscale workloads * Free daily quota * Usage based pricing 2. Flexible * Web , Mobile application, continer based. Flexible vs Standard Standard Flexible Instance startup Milliseconds Minutes SSH access No Yes Write to local disk No Yes Support for 3rd-party binaries No Yes Network access Via App Engine service Yes Prici.. 2020. 2. 13.
[GCP] Cloud Interconnection and Peering Dedicated Interconnect On-premise 네트워크와 Google 의 네트워크를 물리적으로 연결해준다. 설정을 위해서는 Cloud Router 와 On-premise router 사이에 BGP 세션을 설정해줘야 한다. 99.9 ~ 99.99% 의 SLA 를 보장해 준다. Partner Interconnect Partner Interconnect는 Service Provider 를 통해서 On-premise 네트워크와 VPC 네트워크 간의 연결을 제공한다. VPC 네트워크와 서비스 제공업체 네트워크 간의 연결에 한해 99.9 ~ 99.99% 의 SLA 를 보장해 준다. Direct Peering 비즈니스 네트워크와 Google 에지 네트워크 사이를 연결할 수 있다. 다이렉트 피어링을 설정.. 2019. 12. 29.
[GCP] Cloud VPN VPN 2개의 서로 다른 Network 간에 통신을 할때 사용된다. 2개의 서로 다른 Network 는 GCP 내부의 서로 다른 Network 또는 GCP 내 Network 와 on-premiss Network 를 포함한다. Cloud VPN gateway Regional external IP 를 사용하는 Regional 리소스 이다. VPN Tunnel 을 VPN Gateway 를 연결해서 암호화된 트래픽을 전달하는 가상의 매체 역할을 한다. 따라서 두개의 VPN gateway 를 연결 하기 위해서는 VPN Tunnel 을 설정해야 한다. VPN gateway 는 1460 bytes 보다 큰것을 전송할 수 없다. 2019. 12. 29.
[GCP] Google Cloud Certified Associate Cloud Engineer - Practice Exam Linux Academy 에서 Practice Exam 문제를 풀고나서 틀린것들 중에 몇가지 정리한 부분이다. 여러번 볼 예정이어서 내용이 계속 추가될수 있다. ## point-in-time recovery 특정 시점으로 복구하는 기능이다. 클론 생성과 비슷하게 기존 인스턴스의 설정을 상속하여 항상 새로운 인스턴스를 만든다. point-in-time recovery 를 수행 하려면 소스 인스턴스에서 백업 자동화 및 바이너리 로깅 사용설정이 선택된 상태여야 한다. https://cloud.google.com/sql/docs/mysql/backup-recovery/restore 인스턴스 복원 개요 | MySQL용 Cloud SQL | Google Cloud 이 페이지에서는 백업에서 인스턴스를 복원하거나 po.. 2019. 12. 17.
[GCP]VPC Network VPC network 기본적으로 독립적인 private network 이다. 서로 다른 network 간에 internal IP 로 통신을 하기 위해서는 VPC peering 또는 VPN 설정이 필요하다. Instance 간 External IP 를 통한 연결 다른 VPC network, 다른 region, 다른 zone 일 경우에도 External IP 를 통한 연결은 가능하다. Instance 에 대한 access는 오직 ICMP firewall rule 에 의해서 컨트롤 되기 때문이다. (0.0.0.0/0) Instance 간 Internal IP 를 통한 연결 기본적으로 동일한 VPC Network상에 존재하지 않으면 불가능 하다. 단, 동일한 VPC Network 에 속한 instance 들은 .. 2019. 8. 3.
728x90
반응형