指定外网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回答

暮闲

2024-06-15

https://img1.sycdn.imooc.com/szimg/666d34a209b6d30522841196.jpg

应该是kind对云服务器支持不好,同学你还是用内网ip 然后结合课程文档的远程调试的方式试试看

0
1
重开之Java程序员
非常感谢!
2024-06-15
共1条回复

Kubernetes系统精讲 Go语言实战K8S集群可视化

核心知识+高阶应用+原理剖析+二次开发 全方位打通K8S生产实践

399 学习 · 265 问题

查看课程