티스토리 뷰
문제
|
문제 환경 구성
# 노드 레이블 추가
kubectl label nodes k8s-worker1 disktype=ssd
kubectl label nodes k8s-worker2 disktype=std
문제 풀이
# 1. 클러스터 context 변경
kubectl config use-context k8s
# 2. Pod 템플릿 생성
kubectl run eshop-store --image=nginx --dry-run=client -o yaml > eshop-store.yaml
# 3. nodeSelector 정보 추가
vim eshop-store.yaml
....
apiVersion: v1
kind: Pod
metadata:
labels:
run: eshop-store
name: eshop-store
spec:
containers:
- image: nginx
name: eshop-store
nodeSelector:
disktype: ssd
# 4. pod 생성 및 확인
kubectl apply -f eshop-store.yaml
kubectl get pods -o wide |grep eshop-store
'공부자료 > CKA(K8S)' 카테고리의 다른 글
| [CKA]따배씨 - 10. Node 정보 수집 (0) | 2026.01.01 |
|---|---|
| [CKA]따배씨 - 09. Node 관리 (0) | 2026.01.01 |
| [CKA]따배씨 - 07. Rolling Update & Roll Back (0) | 2026.01.01 |
| [CKA]따배씨 - 06. Deployment & Pod Scale (0) | 2026.01.01 |
| [CKA]따배씨 - 05. Side-car Container Pod 실행하기 (0) | 2025.12.31 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 실시간처리
- Bigdata
- k8s
- CKA
- nifi.flowcontroller.autoResumeState
- bigdata #data_mesh
- lld
- 설정에러
- Dataflow
- Discovery Rule
- error
- flink
- 따배씨
- Apache
- nifi
- zabbix
- openjdk1.8
- flow.xml.gz
- namenode
- MAT
- spark driver
- Apache Nifi
- Item Prototypes
- 빅데이터
- hdfs
- exporter
- Nifi Service
- java8
- OOM
- Nifi Architecture
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 |
글 보관함