【发布时间】:2017-12-29 23:30:25
【问题描述】:
我想以一种简单的方式调试 pod,因此我想在不部署的情况下启动 pod。
但它会自动创建一个部署
$ kubectl run nginx --image=nginx --port=80
deployment "nginx" created
所以我必须创建nginx.yaml 文件
---
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
然后像下面这样创建 pod,然后它只创建 pod
kubectl create -f nginx.yaml
pod "nginx" created
如何在命令行中指定kind:Pod 以避免deployment?
//我在windows 7下运行minikue 0.20.0和kubernetes 1.7.0
【问题讨论】:
标签: kubernetes minikube