kubernetes - 无法运行 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'。我收到如下所示的错误 在此处输入图像描述
请帮助我卡住了
解决方案
我执行了以下步骤并且它有效
- 在谷歌云账号上,打开云shell并导航到终端中的BPB_MEAN_Framework目录
- 执行命令gcloud init,重新初始化集群,选择账号、项目和地域
- 执行命令 gcloud container clusters get-credentials blog-dev
- 执行命令 kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.3/deploy/static/provider/cloud/deploy.yaml配置ingress-nginx
推荐阅读
- php - Amazon PHP SDK S3 'waitUntil' 对象存在
- function - 如何在lua中使用meta_table强制添加?
- r - 当存在应保留 NA 的 NA 时,跨数据框填充数据
- c# - IdentityServer4 和安全标记
- xml - 所有主要 xml 行的收缩/扩展表格显示
- maven - maven 安装后我的项目没有出现在 jBPM WorkItem Repository 中
- javascript - 如何使用 d3.js 从 javascripts 中的循环中获取所有值?总是在图表中显示最后一个值
- python-3.x - 使用 URL 列表,如何从每个 URL 的 HTML 表中检索数据
- google-cloud-platform - 如何将 autossh 与 google 计算一起使用(`gcloud compute ssh`)
- php - 获取 json 数据并保存会话?