• 使用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
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐