命令语法
kubectl [command] [type] [name] [flags]
各部分含义:
1、command:子命令包括,create、delete、edit、get、describe
2、type:资源对象的类型,区分大小写,能以单数、复数或简写形式表示。
kubectl get pod pod1
kubectl get pods pod1
kubectl get po pod1
3、name:资源对象的名称,区分大小写。
对多个资源对象操作。
kubectl get pod pod1 pod2
kubectl get pod/pod1 rc/exam-rc1
kubectl get rc,pod
同时应用多个yaml文件
kubectl cre