본문 바로가기
728x90
반응형

kubernetes21

Kubernetes HPA (Horizontal Pod Autoscaler) HPA는 Horizontal Pod Autoscaler의 줄임말로 kubernetes 에서 auto scaling을 지원해주는 기능이라고 볼 수 있다. HPA는 cpu 사용량이나 제공되는 metrics를 기반으로 replication controller, deployment, replica set 또는 stateful set을 scaling 해주는 역할을 수행한다. 단, replicas를 제어할 수 없는 오브젝트 (예로 데몬셋)는 지원되지 않는다. HPA는 controller manager에 의해서 관리되며 --horizontal-pod-autoscaler-sync-period flag로 설정된 주기마다 컨트롤되는 형태의 컨트롤 루프로 구현된다. (기본 설정은 15초) 위에서 설정된 주기와 HPA 설정에.. 2021. 10. 12.
Kubernetes Components 기본적으로 Kubernetes cluster는 node 라고 불리는 일련의 워커 머신들로 이루어져있다. 그 노드 안에서 containerized 된 어플리케이션들이 실행된다. Kubernetes Components 는 크게 두가지로 볼 수 있다. Control Plane Components 와 Node Components 이며 Control Plane은 클러스터에서 Pod 과 Worker Node들을 관리하는데 Production 환경에서 Control Plane은 fault-tolerance 와 high availability를 위해 여러 머신에 걸쳐 구동 되어진다. Control Plane Components Control Plane 들은 클러스터 내에서 발생하는 다양한 이벤트들을 결정하는 역할을 수.. 2021. 10. 7.
kubespray quickstart on Mac Prerequisites install python-pip & python3-pip & ansible python-pip Access https://www.python.org, download python and install it. Once the installation is done, Check below command. 12$ python3 --versionPython 3.7.4cs python3-pip Download get-pip.py file 1curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pycs Then run the following 1python get-pip.pycs ansible 1brew install ansiblecs Setting.. 2019. 7. 17.
kubernetes를 이용한 cluster 구성 - 3 kubernetes를 이용한 cluster 구성 - 3 Master initconfig 파일을 통해 상세한 설정이 가능하다. 참고 - https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file kubeadmin.config.yml 생성 123456789101112131415# cat 2018. 3. 16.
728x90
반응형