본문 바로가기

Tech/Containers19

[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.
lxd container static ip setting Juju로 container를 생성하고 난 뒤 해당 container에 static ip를 사용하기 위해서는 cloud init과 lxc config를 변경해야 한다.lxc config edit : 변경할 ip를 수정하고 저장한다.container안에 기 반영된 ip가 저장된 파일을 수정하고, binary file은 삭제 한다./var/lib/cloud/instances//obj.pkl 삭제/var/lib/cloud/seed/nocloud-net/user-data 수정/etc/network/interfaces.tmpl 삭제reboot 2017. 12. 24.
kubernetes 설치하기 (vmware) Juju를 통해 vmware 에 vm을 만들고 그 위에 kubernetes를 올려본다. kubernetes charm은 https://jujucharms.com/canonical-kubernetes/ 에서 받을 수 있다.기본적으로 juju deploy canonical-kubernetes 하면 vcenter를 통해 vm을 생성하고 그 위에 설치 하게 되지만,vcenter내에 여러개의 cluster가 존재 할 경우 한 곳에 deploy하기 위해서는 bundle file을 수정한다. 아래와 같이 bundle.yaml 파일을 만들거나 위 링크에서 bundle.yaml을 다운 받아서 아래와 같이 수정한 뒤, juju deploy bundle.yaml 을 수행하면 된다series: xenial descriptio.. 2017. 12. 24.