목록전체 글 (31)
Hello One-Joon world
클라우드 컴퓨팅클라우드 컴퓨팅이란? IT 리소스를 빌려서 사용하고, 사용한 만큼만 비용을 지불하는 서비스.반대되는 개념은 온프레미스(on-premise)로, 사용자가 직접 IT 리소스를 구축하여 사용 종류IaaS (Infrastructure as a Service)네트워크, 스토리지, 서버 등을 포함한 자원을 빌려주는 서비스, 하드웨어 리소스 자체를 빌려 쓰는 것→ 주요 서비스 : EC2PaaS (Platform as a Service)OS와 런타임 환경을 빌려주는 서비스→ 주요 서비스 : AWS Elastic Beanstalk, firebaseSaaS (Software as a Service)어클리케이션을 빌려주는 서비스→ 주요 서비스 : 구글 docs, gmail, Slack PaaS, IaaS, S..
Helm HelmThe package manager for Kuberneteshelm.shHelm Chart란? K8s의 패키지 관리자 도구로 K8s의 리소스(Pod, Service, Deployment, ConfiMap, Secret, PV 등등)을 한번에 묶어서 패키지 단위(Chart)로 생성/수정(버전관리)/삭제를 지원한다 Chart 구조 Charts | Helm wordpress/ # Chart 이름 Chart.yaml # 현재 사용중인 Chart의 메타데이터 values.yaml # 각 리소스들에서 사용할 데이터. key:value 형태로 저장 templates/ # 묶을 리소스들 Pod.yaml Service.yaml Deploy..
StatefulSets | Kubernetes StatefulSetsA StatefulSet runs a group of Pods, and maintains a sticky identity for each of those Pods. This is useful for managing applications that need persistent storage or a stable, unique network identity.kubernetes.ioStatefulSet이란? 어떠한 상태 값을 갖는 Deployment StatefulSet이 갖는 상태 값Pod의 고정된 이름 ─Pod 생성/ 삭제 순서 0 →1 →2 순으로 생성, 2 →1 →0 순으로 삭제볼륨의 동적 프로비저닝(Dynamic Provisio..
Init Containers | Kubernetes Init ContainersThis page provides an overview of init containers: specialized containers that run before app containers in a Pod. Init containers can contain utilities or setup scripts not present in an app image. You can specify init containers in the Pod specificationkubernetes.io InitContainer란? 일반적인 App Container가 실행되기 전에 실행되어 여러 초기화 작업을 수행하는 컨테이너. 일반적인 컨테이너와 다르..
Liveness, Readiness, and Startup Probes | Kubernetes Liveness, Readiness, and Startup ProbesKubernetes lets you define probes to continuously monitor the health of containers in a Pod. A probe is a diagnostic performed periodically by the kubelet on a container. To perform a diagnostic, the kubelet either executes code within the container or makkubernetes.ioProbe란? Pod안의 컨테이너 상태를 주기적으로 검사하는 기능..
HPA란? Horizental Pod Autoscaler. 트래픽에 따라서 자동으로 Pod의 갯수를 조절하는 리소스 * 수평 확장─ pod의 갯수를 늘림 수직 확장─ 하나의 pod가 점유하는 자원(CPU/Memory)을 늘림 구성 요소Metrics Server 기본 15초 마다 metrics를 수집 (CPU, Memory 등) kubectl top node 실행이 되어야 함환경 셋팅# 설치> kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml# 로컬 환경 설정> kubectl edit deployment metrics-server -n kube-system# co..
Volume이란? K8s의 Pod 내 컨테이너들이 데이터를 유지하기 위한 방법.Pod내 각 컨테이너들은 Volume을 공유할 수 있다Volumes | Kubernetes VolumesKubernetes volumes provide a way for containers in a Pod to access and share data via the filesystem. There are different kinds of volume that you can use for different purposes, such as: populating a configuration file based on a ConfigMap or a Secret prokubernetes.io 임시 볼륨 ( Ephemeral Volume )..
k8s의 환경변수 설정 방법* Namespace 단위로, 동일한 네임스페이스에 존재하는 Pod만 접근이 가능하다env컨테이너 안 애플리케이션이 실행될 떄 참조하는 설정 값Define Environment Variables for a Container | Kubernetes 기본 파일 구조apiVersion: v1kind: Podmetadata: name: print-greetingspec: containers: - name: env-print-demo image: bash env: - name: GREETING # 대문자 권장 value: "Warm greetings to" - name: HONORIFIC value: "The ..