본문 바로가기
반응형

Development292

맥북에 도커 설치. 도커 설치할 일이 었어서 맥북에 도커를 설치했는데 정말 간단하게 설치가 됐다. 1. 도커 다운로드 https://www.docker.com/get-started Get Started with Docker | Docker Learn about the complete container solution provided by Docker. Find information for developers, IT operations, and business executives. www.docker.com 여기 가면 운영체제에 맞는 도커를 다운 받을 수 있다. 2. 설치 설치는 다른 어플리케이션 설치 하듯이 간단히 드래그 & 드랍으로 하면 된다. 3. 설치가 된후 Start 를 누르면 아래와 같은 화면이 나온다. 도커를 사.. 2020. 7. 10.
[K8S] Kubernetes secret 생성 ingress 에 tls 에서 사용되는 인증서가 만료되어서 secret 을 생성 해야 할 경우 다음과 같이 생성하면된다. 인증서와 key 파일은 있다고 가정한다. 없다면 다음 글을 참고하면 된다. 2018/08/22 - [Development/Tech&Seminar] - Openssl로 SSL 을 위한 인증서 발급하기 (HTTPS) secret 이름은 my-secret 이라고 가정하고 dev 네임스페이스에 생성되어있다고 가정한다. 1. 기존 secret 삭제 kubectl delete secret my-secret -n dev 2. secret 생성 kubectl create secret tls my-secret --key my.key --cert my.crt -n dev 이렇게 하면 끝난다. 이미 in.. 2020. 4. 14.
LinuxAcademy 오답노트 ## You are developing a new application that needs to store and analyze over a petabyte of data in NoSQL format. The database needs to offer low latency and millisecond response time. Which product would you choose? Cloud Bigtable - Although both Datastore and Bigtable are NoSQL databases, Bigtable is able to support over a petabyte of data and is useful for high-speed analytics as well, whereas.. 2020. 4. 6.
[Udemy] Cloud Architect Practice Questioins v2 오답노트 https://www.udemy.com/course/google-cloud-platform-cloud-architect-practice-questions-v2-c/learn/quiz/4398518/result/276974380#overview # Udemy 오답 및 참고 사항 - What is the best use case for Direct Peering Customer wants to exchange only GCP data not google other data. - Company Moving into Google Cloud Platform needs to migrate relational database to google cloud, What option do they have as manage.. 2020. 4. 3.
[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.
[postgresql] connection 늘리기 아래와 같이 쿼리를 실행하면 현재 설정되어있는 max_connection 수를 알수 있다. select * from pg_settings where name = 'max_connections'; /etc/postgresql/{버전}/postgresql.conf 위 파일을 vi 로 열어서 max_connection 값을 설정해주고 재시작 하면 설정이 적용된다. 재시작 (권한이 없으면 앞에 sudo 붙이고) /etc/init.d/postgresql restart 2020. 3. 18.
Elasticsearch 용어 Cluster - Node 의 집합이다. - 가장 큰 시스템 단위, 하나 이상의 노드로 구성된다. - 서로 다른 클러스터는 데이터 교환, 접근 불가능하다. Node Elasticsearch 를 구성하는 하나의 단위 프로세스 - Master-eligible Node node.master: true cluster 를 컨트롤 한다. - Data Node node.date: true data 관련된 일들을 수행한다 : search, CRUD - Ingest Node node.ingest: true 문서 indexing 전에 ingest pipeline 을 적용한다 - Machine learning Node Index - 비슷한 특성을 가진 문서의 모음 Type - 하나의 Index 에서 하나 이상의 Type 을.. 2020. 3. 17.
[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.
728x90
반응형