kubernetes
-
[Udemy] Secretskubernetes/udemy 2025. 2. 18. 10:46
Secrets DB password를 Secret을 활용하여 사용해보자 모든 파일은 kube-manifests/ 폴더 안에 넣어두어, 일괄적으로 생성한다. Storage class 생성 # Storage-class.yaml 파일 생성apiVersion: storage.k8s.io/v1kind: StorageClassmetadata: name: managed-premium-retain-scprovisioner: kubernetes.io/azure-diskreclaimPolicy: Retain # Default is Delete, recommended is retainvolumeBindingMode: WaitForFirstConsumer # Default is Immediate, recommended i..
-
[Udemy] AKS Storage - Azure Disks (2)kubernetes/udemy 2025. 2. 14. 16:07
AKS Storage (2) 이전 글과 이어집니다.https://bbiyak-cloud.tistory.com/140 [Udemy] AKS Storage - Azure DisksAKS Storage Persistent Volume (PV)클러스터 내에서 사용할 수 있는 스토리지Persistent Volume Claim (PVC)정의: PVC는 사용자가 필요한 스토리지의 요구 사항을 정의하는 객체입니다. 사용자는 PVC를 bbiyak-cloud.tistory.com [목표 아키텍처]Storage Class 생성 # storage-class.yml 파일 작성apiVersion: storage.k8s.io/v1kind: StorageClassmetadata: name: managed-premium-retai..
-
[Udemy] AKS Storage - Azure Diskskubernetes/udemy 2025. 2. 14. 10:50
AKS Storage Persistent Volume (PV)클러스터 내에서 사용할 수 있는 스토리지Persistent Volume Claim (PVC)정의: PVC는 사용자가 필요한 스토리지의 요구 사항을 정의하는 객체입니다. 사용자는 PVC를 통해 필요한 스토리지의 크기와 접근 모드를 요청합니다.용도: PVC는 SC를 통해 프로비저닝된 PV(Persistent Volume)를 요청하는 데 사용됩니다. 사용자는 PVC를 통해 스토리지를 요청하고, Kubernetes는 이를 충족하는 PV를 찾아 연결합니다.특징사용자가 직접 스토리지의 세부 사항을 지정할 수 있습니다.PVC는 특정 SC에 의해 생성된 PV와 연결됩니다 Storage Class (SC)정의: Storage Class는 Kubernetes에..
-
[Udemy] Services Demo with Cluster IP and Load Balancer Services (Declarative)kubernetes/udemy 2025. 2. 14. 09:23
Service Demo 1. User가 http:///hello로 접속2. 해당 요청이 LoadBalancer로 전달 후, Front App(Pod)로 이동3. Front App에 있는 Nginx 역방향 프록시 응용 프로그램의 프록시 규칙을 통해 Backend App(Pod)으로 요청 전달4. 해당 요청을 Backend App의 Cluster IP로 전달5. Backend App(Pod)으로 요청 완료 후 Hello World Service 출력 Backend Rest App 환경 구성 (Deployment / ClusterIP) # backend-deployment.yaml 파일 작성apiVersion: apps/v1kind: Deploymentmetadata: name: backend-restapp..
-
[Udemy] Services Demo with Cluster IP and Load Balancer Services (Imperative)kubernetes/udemy 2025. 2. 13. 16:05
Service Demo1. User가 http:///hello로 접속2. 해당 요청이 LoadBalancer로 전달 후, Front App(Pod)로 이동3. Front App에 있는 Nginx 역방향 프록시 응용 프로그램의 프록시 규칙을 통해 Backend App(Pod)으로 요청 전달4. 해당 요청을 Backend App의 Cluster IP로 전달5. Backend App(Pod)으로 요청 완료 후 Hello World Service 출력 Backend Rest App 환경 구성 (Deployment / ClusterIP) # Deployment 생성# Create Deployment for Frontend Nginx Proxykubectl create deployment my-backend-res..
-
[Udemy] Deploymentskubernetes/udemy 2025. 2. 13. 10:28
DeploymentsReplicaSet을 제어해주는 부모 역할ReplicaSet을 컨트롤해서 Pod 수 조절Deployment -> ReplicaSet -> Pod 순으로 컨트롤Deployment가 ReplicaSet을 Control하고, ReplicaSet이 Pod를 컨트롤목적 : Pod 수 조절 & Rolling update & Rolling backRolling update? 애플리케이션의 새로운 버전을 점진적으로 배포하는 방법으로, 서비스의 가용성을 유지하면서 업데이트를 수행할 수 있도록 돕습니다.kubectl set image deployment = kubectl rollout history deployment # 업데이트 히스토리 확인Rolling Back?애플리케이션의 이전 버전으로 되..
-
[Udemy] ReplicaSetkubernetes/udemy 2025. 2. 12. 17:30
ReplicaSetReplicaSet은 지정된 수의 Pod 복제본이 항상 실행되도록 보장하는 컨트롤러Pod가 실패하거나 삭제되면, ReplicaSet은 자동으로 새로운 Pod를 생성하여 원하는 상태를 유지ReplicaSet을 사용하여 여러 개의 파드 복제본을 관리할 때, 서비스(Service)를 활용하여 이러한 파드에 대한 로드 밸런싱을 제공 ReplicaSet 생성 # replicaset-demo.yml 파일 작성apiVersion: apps/v1kind: ReplicaSetmetadata: name: my-helloworld-rs labels: app: my-helloworldspec: replicas: 6 selector: matchLabels: app: my-hellow..
-
[Udemy] Interact with pods, logs, connect to pod and cleanupkubernetes/udemy 2025. 2. 12. 16:07
Pod 로그 확인 # 로그 확인# Dump Pod logskubectl logs kubectl logs my-first-pod---10.224.0.4 - - [12/Feb/2025:06:22:55 +0000] "GET / HTTP/1.1" 200 218 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" "-"2025/02/12 06:22:55 [error] 8#8: *163 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 10.224...