Local Kubernetes development with LXD 踩坑
主要的问题在于国内的网络环境,按照官方文档来是一定走不通的
需要确保的是使用到的 cli 工具均开启了代理
snap 版本大于 2.36.1(老版本有 bug,https://bugs.launchpad.net/snapd/+bug/1791587)
$ sudo snap get core proxy
Key Value
proxy.http http://x.x.x.x:8123
proxy.https http://x.x.x.x:8123
conjure-up 需要指定配置文件启动
Conjurefile
http-proxy: http://x.x.x.x:8123
https-proxy: http://x.x.x.x:8123
no-proxy: localhost,127.0.0.1,你的 lxd bridge 地址,x.x.x.x
注意这里 lxd bridge 地址不能走 proxy,在 juju controller 容器里是需要访问到 lxd bridge 上暴露的 lxd REST API 做后续操作的