[英]Azure AKS Error: Kubernetes cluster unreachable dial tcp no such host 443
I'm trying to run helm command from my terraform configuration.我正在尝试从我的 terraform 配置运行 helm 命令。 But i'm getting kubernetes cluster unreachable error.
但是我遇到了 kubernetes 集群无法访问的错误。 My cluster is private and i don't want to change it.
我的集群是私有的,我不想更改它。 How can i access it?
我怎样才能访问它?
Error: Kubernetes cluster unreachable: Get "https://aksdns-8f2967.c8e977-d63e-461f-a4b6-c356d1.privatelink.westeurope.azmk8s.io:443/version": dial tcp: lookup aksdns-8f67.c8e95477-d63e-461f-a4b6-c33b2d6d1.privatelink.westeurope.azmk8s.io on 192.168.1.1:53: no such host
错误:Kubernetes 集群无法访问:获取“https://aksdns-8f2967.c8e977-d63e-461f-a4b6-c356d1.privatelink.westeurope.azmk8s.io:443/version”:拨号 tcp:查找 aksdns-8f67.c8e95477-d63e -461f-a4b6-c33b2d6d1.privatelink.westeurope.azmk8s.io 192.168.1.1:53:没有这样的主机
resource "helm_release" "ingress-nginx" {
name = "ingress-nginx"
namespace = "ingress-nginx"
create_namespace = true
repository = "https://kubernetes.github.io/ingress-nginx"
chart = "ingress-nginx"
values = [
file("ingress-nginx-values.yaml")
]
}
You will need to run your Terraform scripts from a machine (like a build agent) that is connected via VNet connection to that private cluster.您将需要从通过 VNet 连接到该私有集群的机器(如构建代理)运行 Terraform 脚本。 That is the whole point of private clusters: The control plane is only accessible to machines with direct line-of-sight, not over the internet.
这就是私有集群的全部意义所在:控制平面只能由具有直接视线的机器访问,而不能通过互联网访问。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.