Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以直接 在 k8s 直接配置你的景像么? #7

Closed
buzai opened this issue May 15, 2018 · 7 comments
Closed

可以直接 在 k8s 直接配置你的景像么? #7

buzai opened this issue May 15, 2018 · 7 comments

Comments

@buzai
Copy link

buzai commented May 15, 2018

或者我可以直接 设置 一个 ss 代理给 gcr ,一个个拉有点麻烦。。我ss 了docker 可以但是这个没法被代理

@anjia0532
Copy link
Owner

部分支持自定义,但是基础的不行。或者你可以写个bash脚本,批量pull然后tag改名。再或者,也可以从docker HTTP/HTTPS proxy,但是docker代理不支持socks协议,你得用工具转成http/https的,比如 polipo

@buzai
Copy link
Author

buzai commented May 16, 2018

@anjia0532 我已经转换了 代理,docker 也可以 直接拉镜像了。但是

  Normal   SuccessfulMountVolume  44m                 kubelet, k8s-node3  MountVolume.SetUp succeeded for volume "xtables-lock"
  Normal   SuccessfulMountVolume  44m                 kubelet, k8s-node3  MountVolume.SetUp succeeded for volume "lib-modules"
  Normal   SuccessfulMountVolume  44m                 kubelet, k8s-node3  MountVolume.SetUp succeeded for volume "kube-proxy-token-zvktx"
  Normal   SuccessfulMountVolume  44m                 kubelet, k8s-node3  MountVolume.SetUp succeeded for volume "kube-proxy"
  Normal   BackOff                42m (x4 over 43m)   kubelet, k8s-node3  Back-off pulling image "k8s.gcr.io/kube-proxy-amd64:v1.10.2"
  Normal   Pulling                41m (x4 over 44m)   kubelet, k8s-node3  pulling image "k8s.gcr.io/kube-proxy-amd64:v1.10.2"
  Warning  Failed                 41m (x4 over 43m)   kubelet, k8s-node3  Failed to pull image "k8s.gcr.io/kube-proxy-amd64:v1.10.2": rpc error: code = Unknown desc = Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
  Warning  Failed                 41m (x4 over 43m)   kubelet, k8s-node3  Error: ErrImagePull
  Warning  Failed                 3m (x158 over 43m)  kubelet, k8s-node3  Error: ImagePullBackOff

他还是报错了。

并且

[root@k8s-node1 ~]# docker images
REPOSITORY                                 TAG                 IMAGE ID            CREATED             SIZE
k8s.gcr.io/kube-apiserver-amd64            v1.10.2             e774f647e259        2 weeks ago         225MB
k8s.gcr.io/kube-scheduler-amd64            v1.10.2             0dcb3dea0db1        2 weeks ago         50.4MB
k8s.gcr.io/kube-proxy-amd64                v1.10.2             77019aa0531a        2 weeks ago         97.1MB
k8s.gcr.io/kube-controller-manager-amd64   v1.10.2             f3fcd0775c4e        2 weeks ago         148MB
quay.io/calico/node                        v3.1.1              d94b64ac210d        3 weeks ago         248MB
quay.io/calico/cni                         v3.1.1              482f47df27e2        3 weeks ago         68.8MB
quay.io/calico/kube-controllers            v3.1.1              0375d4dda09e        3 weeks ago         55MB
k8s.gcr.io/etcd-amd64                      3.1.12              52920ad46f5b        2 months ago        193MB
k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64     1.14.8              c2ce1ffb51ed        4 months ago        41MB
k8s.gcr.io/k8s-dns-sidecar-amd64           1.14.8              6f7f2dc7fab5        4 months ago        42.2MB
k8s.gcr.io/k8s-dns-kube-dns-amd64          1.14.8              80cc5ea4b547        4 months ago        50.5MB
k8s.gcr.io/pause-amd64                     3.1                 da86e6ba6ca1        4 months ago        742kB
quay.io/coreos/etcd                        v3.1.10             47bb9dd99916        10 months ago       34.6MB

@buzai
Copy link
Author

buzai commented May 16, 2018

我觉得是不是它 虽然在本地docker 有了镜像但是还要去 访问 谷歌的 那个网站去确认一下然后就 gg 了

@anjia0532
Copy link
Owner

@anjia0532
Copy link
Owner

应该不需要,你搜一下国内搭k8s,都是pull镜像,然后改tag

@anjia0532
Copy link
Owner

@buzai
Copy link
Author

buzai commented May 17, 2018

@anjia0532 十分感谢,我再试试,我昨天尝试 在国外 的服务器上完全可以跑起来,万恶 的墙啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants