본문 바로가기

k8s7

[Kubernetes]컨테이너를 이용하여 웹 어플리케이션 배포하기(3티어구조) #3 이전 포스트에서는 PC에 Docker를 설치하고 3 티어 어플리케이션 구성을 했지만, 이제 Kubernetes 에다가 컨테이너로 구성된 3티어 어플리케이션을 배포해본다. 준비사항기존에 빌드한 docker image를 kubernetes에서 가져올 수 있도록 dockerhub에 저장한다.$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEapache-petclinic latest fb2b159ac038 18 hours ago 242MBtomcat-petclinic latest 3a818df03a1d 43 hours ago 584MBdocker images를 통해 apache, tomcat 컨테이너 이미지를 확인 한 뒤 dockerhub에 올린다. DockerHub에 .. 2018. 3. 28.
[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.