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

kamranazeem/centos-multitool image - ErrImagePull #8

Open
themsay opened this issue Apr 24, 2017 · 2 comments
Open

kamranazeem/centos-multitool image - ErrImagePull #8

themsay opened this issue Apr 24, 2017 · 2 comments

Comments

@themsay
Copy link

themsay commented Apr 24, 2017

Your tutorial is really helpful. I have two things to point at on https://github.com/Praqma/LearnKubernetes/blob/master/kamran/Kubernetes-The-Hard-Way-on-BareMetal.md

  1. As I was going through this I hit an issue with your test image kamranazeem/centos-multitool. I don't know if the problem is from my setup?
$ kubectl run centos-multitool --image=kamranazeem/centos-multitool
deployment "centos-multitool" created

$ kubectl get pods -o wide -w
NAME                                READY     STATUS             RESTARTS   AGE       IP            NODE
centos-multitool-1226373562-rb2md   0/1       ImagePullBackOff   0          53s       10.200.0.14   worker-1
nginx-158599303-7jkwz   1/1       Running   3         1d        10.200.1.13   worker-2
nginx-158599303-p89b2   1/1       Running   3         1d        10.200.0.13   worker-1
centos-multitool-1226373562-rb2md   0/1       ErrImagePull   0         1m        10.200.0.14   worker-1
centos-multitool-1226373562-rb2md   0/1       ImagePullBackOff   0         1m        10.200.0.14   worker-1
centos-multitool-1226373562-rb2md   0/1       ErrImagePull   0         1m        10.200.0.14   worker-1
centos-multitool-1226373562-rb2md   0/1       ImagePullBackOff   0         1m        10.200.0.14   worker-1
  1. I suggesting instead of extracting the PodCIDR information with https://github.com/Praqma/LearnKubernetes/blob/master/kamran/Kubernetes-The-Hard-Way-on-BareMetal.md#managing-the-container-network-routes steps.

You can simple get all at once without container with command:

$ kubectl get nodes --output=jsonpath='{range .items[*]} {.spec.podCIDR} {.spec.externalID} {"\n"}{end}'
 10.200.0.0/24 worker-1 
 10.200.1.0/24 worker-2

or for each node can be done with below:

$ kubectl get nodes --output=jsonpath='{range .items[*]}{.spec.podCIDR} {.spec.externalID} {"\n"}{end}' | grep worker-1 | awk '{print $1}'
10.200.0.0/24

NB: 'worker-1' and 'worker-2' is my worker node hostname(s).

Thanks once again for your time.

@KamranAzeem
Copy link
Contributor

Hi!
Thanks for your feedback!

For the multitool, the new image is actually here: https://github.com/Praqma/Network-MultiTool

Thanks for the short-hand / simplified command to extract network routes information. Very helpful. Thanks!

Regards,
Kamran

@themsay
Copy link
Author

themsay commented Apr 24, 2017

No such file or directory

$ git clone https://github.com/Praqma/LearnKubernetes.git
Cloning into 'LearnKubernetes'...
remote: Counting objects: 1279, done.
remote: Total 1279 (delta 0), reused 0 (delta 0), pack-reused 1279
Receiving objects: 100% (1279/1279), 6.93 MiB | 0 bytes/s, done.
Resolving deltas: 100% (564/564), done.
Checking connectivity... done.
$ cd LearnKubernetes/kamran/LoadBalancer-Files/
-bash: cd: LearnKubernetes/kamran/LoadBalancer-Files/: No such file or directory

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