kubectl create 명령어 탐색
kubectl create 명령어는 Kubernetes 리소스를 생성하기 위한 여러 하위 명령어를 제공합니다. 네임스페이스, 배포 (Deployment), 서비스, 시크릿 (Secrets), ConfigMap 과 같은 리소스 생성을 관리하는 데 도움이 됩니다.
사용 가능한 kubectl create 하위 명령어를 보려면 다음 명령을 실행하십시오.
kubectl create -h
다음과 같은 출력을 볼 수 있습니다.
Create a resource from a file or from stdin.
JSON and YAML formats are accepted.
Examples:
## Create a pod using the data in pod.json
kubectl create -f ./pod.json
## Create a pod based on the JSON passed into stdin
cat pod.json | kubectl create -f -
## Edit the data in registry.yaml in JSON then create the resource using the edited data
kubectl create -f registry.yaml --edit -o json
Available Commands:
clusterrole Create a cluster role
clusterrolebinding Create a cluster role binding for a particular cluster role
configmap Create a config map from a local file, directory or literal value
cronjob Create a cron job with the specified name
deployment Create a deployment with the specified name
ingress Create an ingress with the specified name
job Create a job with the specified name
namespace Create a namespace with the specified name
poddisruptionbudget Create a pod disruption budget with the specified name
priorityclass Create a priority class with the specified name
quota Create a quota with the specified name
role Create a role with single rule
rolebinding Create a role binding for a particular role or cluster role
secret Create a secret using specified subcommand
service Create a service using a specified subcommand
serviceaccount Create a service account with the specified name
token Request a service account token
사용 가능한 하위 명령어와 해당 설명을 검토하여 kubectl create를 사용하는 방법을 이해하십시오.