指定外网ip创建集群失败
来源:3-8 Golang后端项目搭建-集成K8S(下)

重开之Java程序员
2024-06-15
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
# WARNING: It is _strongly_ recommended that you keep this the default
# (127.0.0.1) for security reasons. However it is possible to change this.
apiServerAddress: "39.96.173.226"
# By default the API server listens on a random open port.
# You may choose a specific port but probably don't need to in most cases.
# Using a random port makes it easier to spin up multiple clusters.
apiServerPort: 6443
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
endpoint = ["https://njzb6yez.mirror.aliyuncs.com"]
nodes:
- role: control-plane
- role: worker
- role: worker
老师你好,我指定了阿里云的外网ip,但是用外网ip创建集群就会报这个错误
写回答
1回答
-
应该是kind对云服务器支持不好,同学你还是用内网ip 然后结合课程文档的远程调试的方式试试看
012024-06-15
相似问题