-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Using containervm image for gce by default #2046
Conversation
a28c3f4
to
5a01989
Compare
With this PR, we have memcg cgroup enabled properly at node: root@kubernetes-minion-4:/var/log# ls /sys/fs/cgroup/memory/docker/ Also cAdvisor could report memory related stats: http://146.148.52.185:4194/containers/ |
@@ -239,6 +239,13 @@ function kube-up { | |||
local htpasswd | |||
htpasswd=$(cat "${KUBE_TEMP}/htpasswd") | |||
|
|||
if ! gcutil getimage "${IMAGE}" > /dev/null 2>&1; then | |||
echo "Add new image: ${IMAGE}" |
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.
nit: "Adding" new image?
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.
Done. Thanks!
Minor nits, overall LGTM thanks @dchen1107! Finally getting the memory stats is awesome :) |
LGTM |
37fb6c6
to
18685d4
Compare
Thanks @dchen1107. This change saves a lot of time. Wonder when it will get merged... ? |
LGTM will merge it now. Thanks Dawn! |
Using containervm image for gce by default
Have done a lot of tests against this change:
On master node:
root@kubernetes-master:/var/log# /usr/local/bin/apiserver --version
Kubernetes 3f52a97-311-gdcd454374fe4e1-dirty
On minion node:
root@kubernetes-minion-1:/var/log# /usr/local/bin/kubelet --version
Kubernetes 3f52a97-311-gdcd454374fe4e1-dirty
root@kubernetes-minion-1:/var/log# /usr/bin/docker --version
Docker version 1.3.0, build c78088f
2014/10/28 15:29:39 Passed tests: [update.sh guestbook.sh services.sh goe2e.sh basic.sh]
2014/10/28 15:29:39 Failed tests: []
$ cluster/kubecfg.sh list pods
Name Image(s) Host Labels Status
redis-master-2 dockerfile/redis kubernetes-minion-1.c.golden-system-455.internal/146.148.52.185 name=redis-master Running
12ca8706-5efe-11e4-b6bd-42010af0091c brendanburns/redis-slave kubernetes-minion-4.c.golden-system-455.internal/130.211.121.128 name=redisslave Running
12cbf5f5-5efe-11e4-b6bd-42010af0091c brendanburns/redis-slave kubernetes-minion-2.c.golden-system-455.internal/107.178.223.69 name=redisslave Running
41141971-5efe-11e4-b6bd-42010af0091c brendanburns/php-redis kubernetes-minion-3.c.golden-system-455.internal/130.211.119.51 name=frontend Running
41144698-5efe-11e4-b6bd-42010af0091c brendanburns/php-redis kubernetes-minion-1.c.golden-system-455.internal/146.148.52.185 name=frontend Running
41149190-5efe-11e4-b6bd-42010af0091c brendanburns/php-redis kubernetes-minion-4.c.golden-system-455.internal/130.211.121.128 name=frontend Running