Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- ripng
- Chrony
- ACL
- Vlan
- 명령어
- NAT
- 라우터
- vrrp
- Redistribute
- Etherchannel
- ipv6
- CKA
- crontab
- tunneling
- 헤더
- eigrpv2
- OSPF
- DHCP
- GLBP
- eigrp
- Inter VLAN
- OSI 7 layer
- 장비
- 스위치
- stp
- rip
- ospfv3
Archives
- Today
- Total
Net Eng
[CKA] - Persistent Volume 생성 본문
[선수 지식]
1. 볼륨 종류
* hostPath
* emptyDir
* nfs
+
* iscsi, fc, ...
2. PV & PVC
* PV - 볼륨 정의(특성)
* PVC - 볼륨 요청(특성)
[선수 작업]
kubectl config set-context k8s --user=kubernetes-admin --cluster=kubernetes
[문제]
- 작업 클러스터: k8s
- Create a persistent volume with name app-config, of capacity 1Gi and access mode ReadWriteMany.
- storageClass: az-c
- The type of volume is hostPath and its location is /srv/app-config.
[풀이]
kubectl config use-context k8s
* k8s 클러스터 사용
apiVersion: v1
kind: PersistentVolume
metadata:
name: app-config
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: az-c
hostPath:
path: /srv/app-config
* PV를 위한 yaml 파일 생성
kubectl apply -f app-config-pv.yaml
* yaml 파일 실행
kubectl get pv
* PV 확인
[참고]
볼륨
컨테이너 내의 디스크에 있는 파일은 임시적이며, 컨테이너에서 실행될 때 애플리케이션에 적지 않은 몇 가지 문제가 발생한다. 한 가지 문제는 컨테이너가 크래시될 때 파일이 손실된다는 것
kubernetes.io
Persistent Volumes
This document describes persistent volumes in Kubernetes. Familiarity with volumes, StorageClasses and VolumeAttributesClasses is suggested. Introduction Managing storage is a distinct problem from managing compute instances. The PersistentVolume subsystem
kubernetes.io
퍼시스턴트 볼륨
이 페이지에서는 쿠버네티스의 퍼시스턴트 볼륨 에 대해 설명한다. 볼륨에 대해 익숙해지는 것을 추천한다. 소개 스토리지 관리는 컴퓨트 인스턴스 관리와는 별개의 문제다. 퍼시스턴트볼륨 서
kubernetes.io
'Cloud > Kubernetes' 카테고리의 다른 글
[CKA] - Check Resource Information (1) | 2024.01.23 |
---|---|
[CKA] - Persistent Volume Claim 사용하는 Pod 운영 (0) | 2024.01.22 |
[CKA] - Secret 운영 (0) | 2024.01.22 |
[CKA] - ConfigMap 운영 (1) | 2024.01.22 |
[CKA] - NodePort 서비스 생성 (1) | 2024.01.22 |