-
volume과 configmap 활용공부합시다!/Kubernetes 2025. 12. 8. 08:56728x90
configmap의 data 영역에 html을 생성하고
이를 volume mount의 subpath로 활용을 하면 쉽게 html을 이용할 수 있습니다.
1. configmap에 bobo.html과 coco.html 파일 영역을 미리 생성합니다.

2. subpath에 configmap의 bobo.html 영역 참조

3. subpath에 configmap의 coco.html 영역 참조

4. 확인


다양한 방법들이 많으니 여러모로 공부를 해야합니다.
Have a nice day!
728x90'공부합시다! > Kubernetes' 카테고리의 다른 글
kubevirt 설치 (0) 2024.07.30 Rocky9 Kubernetes 설치: Rocky9.3 K8S Cluster 구성 (0) 2024.07.04 CNI: weave 초기 설치시 imagepullback error (0) 2024.06.24 Kubernetes (K8S): Metrics Server 설치 (0) 2023.07.06 Kubernetes (K8S): HPA(Horizontal Pod Autoscaling) (0) 2023.07.04