반응형
250x250
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 | 29 | 30 |
Tags
- or some instances in your deployment group are experiencing problems.
- chart.js
- Airflow
- codedeploy
- IntelliJ
- kubeflow
- VPN
- codedeploy error
- java bigdecimal
- COALESCE
- JavaScript
- node
- PostgreSQL
- AWS CI/CD 구축하기
- aws
- Python
- aws cicd
- Spring Error
- docker
- codepipeline
- 도커
- Spring
- SQL
- redis
- chartjs
- codebuild
- bootstrap
- Kafka
- Jenkins
- Flux
Archives
- Today
- Total
Small Asteroid Blog
[CKA] 문제풀이 - 따배쿠 02. Pod 생성하기 본문
728x90
강의 : 따배쿠 02. Pod 생성하기
문제
1. 사용자 변경
kubectl config use-context k8s
2. 네임스페이스 만들기
kubectl create namespace ecommerce
3. 네임스페이스 안에 파드 생성하기
## --dry-run=client 을 사용해 실행하는데 문제가 없는지 확인한다
kubectl run eshop-main --image=nginx:1.17 --env=DB=mysql --namespace=ecommerce --dry-run=client
## 환경 변수가 제대로 들어갔는지 yaml 로 확인하기
kubectl run eshop-main --image=nginx:1.17 --env=DB=mysql --namespace=ecommerce --dry-run=client -o yaml
## 파드 생성
kubectl run eshop-main --image=nginx:1.17 --env=DB=mysql --namespace=ecommerce
728x90
반응형
'클라우드 및 인프라 > CKA' 카테고리의 다른 글
[CKA] Udemy - Troubleshooting - worker node failure 문제풀이 (0) | 2023.05.29 |
---|---|
[CKA] kubectl JSON Path 사용법 (0) | 2023.05.23 |
[CKA] 문제풀이 - Cluster Upgrade - only Master (0) | 2023.05.15 |
[CKA] 문제풀이 - 따배쿠 01. ETCD Backup & Restore (0) | 2023.05.11 |
[CKA] cka 문제 풀이에 필요한 document 참조 링크 (0) | 2023.05.10 |