首页 > 解决方案 > 无法运行 ingress-nginx 设置的强制命令

问题描述

我无法在 Google 云上运行 ingress-nginx 设置的强制命令。我已使用“gcloud auth login”对 Google 云进行了身份验证。接下来我执行 'kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml'。我收到如下所示的错误 在此处输入图像描述

请帮助我卡住了

标签: kubernetesingress-nginx

解决方案


我执行了以下步骤并且它有效

  1. 在谷歌云账号上,打开云shell并导航到终端中的BPB_MEAN_Framework目录
  2. 执行命令gcloud init,重新初始化集群,选择账号、项目和地域
  3. 执行命令 gcloud container clusters get-credentials blog-dev
  4. 执行命令 kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.3/deploy/static/provider/cloud/deploy.yaml配置ingress-nginx

推荐阅读