Skip to content

Commit

Permalink
Merge pull request #1 from whitmo/new-cadvisor-port
Browse files Browse the repository at this point in the history
Change cadvisor port and point kubelet to find it
  • Loading branch information
Matt Bruzek committed Apr 20, 2015
2 parents a5da370 + 7b3534e commit f201379
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ exec docker run \
--volume=/var/run:/var/run:rw \
--volume=/sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--publish=127.0.0.1:4194:8080 \
--publish=127.0.0.1:4193:8080 \
--name=cadvisor \
google/cadvisor:latest
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ exec /usr/local/bin/kubelet \
--address=%(kubelet_bind_addr)s \
--api_servers=%(kubeapi_server)s \
--hostname_override=%(kubelet_bind_addr)s \
--cadvisor_port=4193
--logtostderr=true
2 changes: 1 addition & 1 deletion cluster/juju/charms/trusty/kubernetes/hooks/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def relation_changed():
# Setup kubernetes supplemental group
setup_kubernetes_group()

# Register services
# Register upstart managed services
for n in ("cadvisor", "kubelet", "proxy"):
if render_upstart(n, template_data) or not host.service_running(n):
print("Starting %s" % n)
Expand Down

0 comments on commit f201379

Please sign in to comment.