본문 바로가기

전체 글119

[K8S][GCP] Kubernets 설치(kubeadm) 및 테스트 배포하기 GCP내에서 GKE라는 Kubernetes 서비스를 제공하고 있지만 사용자는 worker node만 access가 가능하고 서비스를 배포하는 목적으로만 사용할 수 있기 때문에 GCP내에 VM을 만들어 Kubernetes를 배포해 본다.Kubernetes 설치는 다양한 방법(helm, ansible, kubeadm 등)이 있지만 아래는 손쉽게 kubeadm을 통해 구성해본다.A. 환경 구성1. GCP안에 1 vcpu, 4G Ram, 20G Disk로 VM을 2대 생성한다.2. CentOS 7으로 설치를 하고 PC에서 바로 접속 할 수 있도록 ssh-key를 넣어두고 생성한다.3. 설치는 아래 kubernetes 가이드 처럼 수행한다.https://kubernetes.io/docs/setup/independ.. 2018. 3. 26.
[K8S] Kubernetes 이해하기 1. What is Kubernetes?Kubernetes is an open-source platform designed to automate deploying, scaling, and operating application containers. 2. Why Containers? 3. Kubernetes Architecture3.1 Master Componentskube-apiserverkube-apiserver exposes the Kubernetes API. It is the front-end for the Kubernetes control plane. It is designed to scale horizontally – that is, it scales by deploying more instan.. 2018. 3. 21.
[GCP] Speech API를 이용하여 음성을 텍스트로 변환하기 Google Cloud Platform에서 제공하는 Cloud ML중 Speech API를 이용하여 음성파일로 저장한 것을 텍스트로 변환을 해본다.회의시나 통화중 저장된 음성을 텍스트로 변환할 필요가 생겼는데 이러한 것을 손 쉽게 GCP내의 Speech API를 이용하여 진행한다.1. 음성파일을 google cloud storage로 업로드를 한다.gsutil cp gs://2. Node.js 환경 설치 a. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash b. Node.js 및 npm 설치 nvm install stable nvm alias default stable npm install --save .. 2018. 3. 19.
Google Cloud Platform (GCP) 로컬에서 사용하기 구글 클라우드 플랫폼 (GCP)의 콘솔에서 Shell을 열어서 작업을 할 수 있지만, 로컬환경에서 GCP의 명령어를 사용할 수 있다. 우선 리눅스 환경이 익숙해서 리눅스에서 적용을 해 본다.윈도우의 경우에는 Linux Bash가 10버전 부터 지원을 하기 때문에 아래 링크를 따라 구성하면 윈도우에서도 Linux를 사용할 수 있다.https://docs.microsoft.com/en-us/windows/wsl/install-win10 GCP의 Shell을 사용하기 위해서는 우선 인증이 되어야 한다.GCP Console에 로그인 할 때 ID랑 비밀번호를 넣고 인증을 하듯이 Shell 환경에서는 Console의 IAM에 들어가서 Service Account 계정을 하나 생성하고 생성할 때 JSON으로 된 키를.. 2017. 12. 28.