【发布时间】:2020-09-22 12:53:10
【问题描述】:
我想借助
在 kubernetes 上运行一个 nginx-serverkubectl run nginx-image --image nginx
但是抛出了错误:
error: Missing or incomplete configuration info. Please point to an existing, complete config file:
1. Via the command-line flag --kubeconfig
2. Via the KUBECONFIG environment variable
3. In your home directory as ~/.kube/config
然后我跑了
kubectl run nginx-image --kubeconfig ~/.kube/config --image nginx
再次抛出:
error: Missing or incomplete configuration info. Please point to an existing, complete config file:
1. Via the command-line flag --kubeconfig
2. Via the KUBECONFIG environment variable
3. In your home directory as ~/.kube/config
minikube start 解决了问题,但它占用了资源...
我只想问如何在不启动 minikube(或其他此类解决方案)的情况下运行 kubectl?如果不可能,请告诉我
当我运行 kubectl get pods 时,我得到了两个 pod,而我只想要一个,我知道这是可能的,因为我在一些视频教程中看到过。
请帮忙...
【问题讨论】:
标签: nginx kubernetes orchestration