Notes|Notes of Kubernetes Operation
kubectl
kubectl [command] [TYPE] [NAME] [flags]
command
create
get
delete
describe
- 【Notes|Notes of Kubernetes Operation】
TYPE
(to specify resource types)
kubectl get pod pod1 kubectl get pods pod1 kubectl get po pod1
NAME
(to specify resource name, if not specified, list all the resources)
文章图片
- kubectl create
# Generate a yaml but not actually create the deployment kubectl create deployment DeployTest --image=nginx -o yaml --dry-runkubectl create deployment DeployTest --image=nginx -o yaml --dry-run > m1.yaml
- kubectl get
Export a yaml from a deployed application
文章图片
推荐阅读
- 多线程NSOperation
- federation--kubernetes集群联邦的实现
- 如何在Kubernetes|如何在Kubernetes 里添加自定义的 API 对象(一)
- Kubernetes服务(初学者指南)
- 深入理解Kubernetes的认证与授权机制
- 利用Centos7|利用Centos7 YUM 快速搭建Kubernetes集群
- App|App Store connect Operation Error
- Kubernetes|Kubernetes stateful set讲解以及一个基于postgreSQL的具体例子
- NSOperation和NSOperationQueue验证笔记
- learning|learning kubernetes by minikube, 3