我正在尝试使用 terraform 部署 kubernetes ingress。\n如此处所述链接和我自己的变体:
\nresource "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}\nRun 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)