mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
* kubectl-*: add short/long options and subcommands * Update kubectl-wait.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * added short/long subcommand to english page * Update kubectl-wait.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * update spanish translation --------- Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
847 B
847 B
kubectl create
파일 또는
stdin에서 리소스를 생성. 더 많은 정보: https://kubernetes.io/docs/reference/kubectl/generated/kubectl_create/.
- 리소스 정의 파일을 사용하여 리소스 생성:
kubectl create {{[-f|--filename]}} {{경로/대상/파일.yml}}
stdin에서 리소스 생성:
kubectl create {{[-f|--filename]}} -
- 배포 생성:
kubectl create {{[deploy|deployment]}} {{배포_이름}} --image {{이미지}}
- 복제본과 함께 배포 생성:
kubectl create {{[deploy|deployment]}} {{배포_이름}} --image {{이미지}} --replicas {{복제본_수}}
- 서비스 생성:
kubectl create {{[svc|service]}} {{서비스_유형}} {{서비스_이름}} --tcp {{포트}}:{{대상_포트}}
- 네임스페이스 생성:
kubectl create {{[ns|namespace]}} {{네임스페이스_이름}}