-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Load docker images of kubernetes components after docker is installed. #6496
Load docker images of kubernetes components after docker is installed. #6496
Conversation
@derekwaynecarr can you check if this PR works with Vagrant ? |
Will report back with results |
@derekwaynecarr did you get a chance to try it. thanks! |
not yet, will try this afternoon and reply. |
@@ -104,9 +104,24 @@ lxc-docker-{{ docker_ver }}: | |||
- sources: | |||
- lxc-docker-{{ docker_ver }}: /var/cache/docker-install/{{ deb }} | |||
|
|||
docker_load_kube_apiserver: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions are stuck in a if/else block that is only called if you are not running in a Red Hat based linux distro, so they are never called. I am testing this by moving it to the top of the function.
bdde589
to
9327694
Compare
@derekwaynecarr I update the PR based on your feedback. |
9327694
to
e8c2c82
Compare
So it doesn't fail, but when I ssh into the master and run 'sudo docker images', I do not see the images reported. If I manually run the command to load the tars 'sudo docker load -i ...' , the images load fine. |
I am trying to start my own vagrant cluster. |
I am happy to debug further. Ping me on IRC |
e8c2c82
to
dbfda90
Compare
As structured, this code attempts to load the images on the master and the minions. Is this desired? It causes error on subsequent kube-push calls when each minion tries to run the command.
|
It looks like on initial kube-up, docker is not found for some reason yet when the command runs. It looks on subsequent kube-push, the images are loaded correctly on the master, but there is an error reported by salt on each minion as defined above. |
Would it be better to push this into its own sls file kind of like we do for kube-addons so this can only run on the master? |
dbfda90
to
c5c2e87
Compare
Trying again, will report back with success/fail. Is the goal for this image to be on each minion though? |
LGTM |
@derekwaynecarr I am going to address your previous comments about loading images only on master. |
c5c2e87
to
4996ccb
Compare
@derekwaynecarr |
@thockin PTAL |
Trying this now. |
works great, LGTM. |
Load docker images of kubernetes components after docker is installed.
Thanks!! Sent from my iPhone
|
# limitations under the License. | ||
|
||
while true; do | ||
if which docker 1>/dev/null 2>&1; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't spinwaiting? :) You might want a sleep in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#6465