expose 使用 replication controller, service, deployment 或者 pod 并暴露它作为一个 新的 Kubernetes Service run 在集群中运行一个指定的镜像 set 为 objects 设置一个指定的特征 Basic Commands (Intermediate): explain 查看资源的文档 get 显示一个或更多 resources edit 在服务器上编辑一个资源 delete Delete r...
run 在集群中运行一个指定的镜像set为 objects 设置一个指定的特征 BasicCommands(Intermediate):explain 查看资源的文档get显示一个或更多 resources edit 在服务器上编辑一个资源deleteDelete resources by filenames,stdin,resources and names,or by resources and label selector Deploy Commands:rollout Manage the ...
kubectl api-resources--namespaced=true #Get Kubernetes objects which can be in a namespaces 1. 图7 想查看哪些Kubernetes资源不在命名空间中,请使用以下命令。 复制 kubectl api-resources--namespaced=false #Get a list of Kubernetes objects that can never be in a namespace 1. 图8 您可以使用下述...
$kubectl get pod example-pod1 example-pod2 获取多种不同类型对象的信息,以 TYPE1/name1 TYPE2/name2 TYPE3/name3 TYPE<#>/name<#> 格式表示: $kubectl get pod/example-pod1 replicationcontroller/example-rc1 同时应用多个 YAML 文件,以多个 -f file 参数表示: $kubectl get pod -f pod1.yaml -f...
kubectl taint nodes --allhttp://node-role.kubernetes.io/master- kubectl安装后,默认是没有比如自动补全等功能的,频繁使用比较不方便。目前已经有各类kubectl小工具可以提高效率,还有kubectl专用的shell了。个人感觉比较好用有以下这些: 自动补全 kubectl 命令在bash中默认是没有自动补全的,需要安装bash_completion,添...
set 为 objects 设置一个指定的特征 Basic Commands (Intermediate): explain 查看资源的文档 get 显示一个或更多 resources edit 在服务器上编辑一个资源 delete Delete resources by filenames, stdin, resources and names, or by resources and label selector ...
// Create the objects that are defined in any .yaml, .yml, or .json file within the <directory> directory. $ kubectl create -f <directory> // Display the details of all the pods that are managed by the replication controller named <rc-name>. ...
set为 objects 设置一个指定的特征 Basic Commands (Intermediate): explain 查看资源的文档 get显示一个或更多 resources edit 在服务器上编辑一个资源 delete Delete resourcesbyfilenames, stdin, resources and names, orbyresources and label selector ...
kubectl get alldoes not list all resources in a namespace. What you expected to happen: As a user performingkubectl get allI expect to see all objects in the current context, including limits. How to reproduce it(as minimally and precisely as possible): ...
-n, --namespace='': 指定命令操作对象的Namespace 资源字段 kubectl explain命令可以输出资源对应的属性字段及定义,在定义资源配置文件时候非常有用。 # Usage: kubectl explain RESOURCE [options] # Examples: $ kubectl explain deployment.spec.selector ...