小编Mih*_*dov的帖子

使用 terraform 部署 kubernetes ingress

我正在尝试使用 terraform 部署 kubernetes ingress。\n如此处所述链接和我自己的变体:

\n
resource "kubernetes_ingress" "node" {\n  metadata {\n    name = "node"\n  }\n  spec {\n    ingress_class_name = "nginx"\n    rule {\n      host = "backend.io"\n      http {\n        path {\n          path = "/"\n          backend {\n            service_name = kubernetes_service.node.metadata.0.name\n            service_port = 3000\n          }\n        }\n      }\n    }\n  }\n}\n
Run Code Online (Sandbox Code Playgroud)\n

错误:

\n
\xe2\x95\xb7\n\xe2\x94\x82 Error: Failed to create Ingress \'default/node\' because: the server could not find the requested resource (post ingresses.extensions)\n\xe2\x94\x82 \n\xe2\x94\x82   with kubernetes_ingress.node,\n\xe2\x94\x82   on node.tf line 86, in resource "kubernetes_ingress" "node":\n\xe2\x94\x82 …
Run Code Online (Sandbox Code Playgroud)

kubernetes terraform

1
推荐指数
1
解决办法
3499
查看次数

标签 统计

kubernetes ×1

terraform ×1