Create and run a particular image
kubectl run NAME --image=image [--env="key=value"] [--port=port] [--replicas=replicas] [--dry-run=bool] [--overrides=inline-json] [--command] -- [COMMAND] [args...]
Create a namespace called 'dev' and a pod with image nginx called p on the namespace:
kubectl create namespace dev
kubectl run p --image=nginx --restart=Never -n dev
'aws > k8s, eks study' 카테고리의 다른 글
Error of getting credential - no kind "ExecCredential" is registered for version (0) | 2023.02.15 |
---|---|
Difference between kubectl apply & create (0) | 2022.06.28 |
K8s 기본 네임스페이스 변경 (0) | 2022.06.14 |
CKA 평가 항목 (0) | 2022.04.21 |
K8s basic command (0) | 2022.04.12 |