Kubernetes离线安装-暂停容器 [英] Kubernetes offline installation - pause container

查看:82
本文介绍了Kubernetes离线安装-暂停容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道kubernetes是否支持脱机安装(例如断开的网络)吗?我下载了所有代码,安装了两个节点的集群,当尝试从私有注册表运行映像时,"kubectl get events"命令显示无法启动容器,因为该容器无法下载gcr.io/google_containers /暂停:0.8.0.在特定环境下,这完全有意义,但是是否可以将kubernetes配置为使用其他暂停容器?

Does anyone know if kubernetes supports an offline installation such as a disconnected network? I downloaded all of the pieces, installed a two node cluster, and when I attempted to run an image from a private registry the "kubectl get events" command displayed that the container could not be started since it could not download gcr.io/google_containers/pause:0.8.0. This makes complete sense given the environment but is it possible to configure kubernetes to use a different pause container?

推荐答案

kubelet 具有--pod-infra-container-image=标志,可用于更改使用哪个基础容器.如果您构建自己的暂停容器(从此处开始,我会猜),然后将其上传到您的私人注册表中(尽管我没有尝试过).

The kubelet has a --pod-infra-container-image= flag that you can use to change which infra container is used. If you build your own pause container (starting from here, I'd guess), and upload to your private registry, it should work (although I've not tried it).

这篇关于Kubernetes离线安装-暂停容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆