namespaces “xxx“ not found
k8s学习
·
- 使用k8s创建pod时提示namespace不存在
kubectl apply -f statefulset_deployment.yaml -n etcd
Error from server (NotFound): error when creating "statefulset_deployment.yaml": namespaces "etcd" not found
- 解决方法:先创建namespace在启动
kubectl create ns etcd
namespace/etcd created
kubectl apply -f nodeport-deployment.yaml -n etcd
service/etcd-client created
更多推荐
已为社区贡献2条内容
所有评论(0)