如何在离线网络环修改busybox拉取私有仓库。

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:V4.0.4
  • 【问题描述】:在离线网络环境需要修改busybox 的image成私有仓库,但是未找到修改的位置,这个怎么修改。
vents:
  Type     Reason     Age                   From                   Message
  ----     ------     ----                  ----                   -------
  Normal   Scheduled  <unknown>             default-scheduler      Successfully assigned test-namespace1/basic1-tidb-0 to 10.204.11.88
  Normal   Pulling    12m                   kubelet, 10.204.11.88  Pulling image "harbor.fcbox.com/tidb/pingcap/tidb:v4.0.4"
  Normal   Started    12m                   kubelet, 10.204.11.88  Started container tidb
  Normal   Pulled     12m                   kubelet, 10.204.11.88  Successfully pulled image "harbor.fcbox.com/tidb/pingcap/tidb:v4.0.4"
  Normal   Created    12m                   kubelet, 10.204.11.88  Created container tidb
  Normal   Pulling    11m (x3 over 12m)     kubelet, 10.204.11.88  Pulling image "busybox:1.26.2"
  Warning  Failed     11m (x3 over 12m)     kubelet, 10.204.11.88  Failed to pull image "busybox:1.26.2": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
  Warning  Failed     11m (x3 over 12m)     kubelet, 10.204.11.88  Error: ErrImagePull
  Warning  Failed     10m (x6 over 12m)     kubelet, 10.204.11.88  Error: ImagePullBackOff
  Normal   BackOff    2m22s (x37 over 12m)  kubelet, 10.204.11.88  Back-off pulling image "busybox:1.26.2"

spec.tidb.slowLogTailer.image

感谢,另外问下,完整的配置在什么地方。

https://github.com/pingcap/tidb-operator/blob/release-1.1/docs/api-references/docs.md 这里可以看每个 CR 都可以配置哪些 field。

感谢。

:+1:

这个地方我们后续会改进一下,搞一个全的 example yaml,每个 field 都加上注释,这样后面大家直接参考那个 example yaml,看自己想配哪些,该怎么配等等。
https://github.com/pingcap/tidb-operator/issues/3279

感谢。

感谢分享

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。