Skip to content

Commit

Permalink
mount /var/log in order to allow cluster level logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cw-kuoka committed May 31, 2016
1 parent 28f74d6 commit 37ca97a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DOCKER_DIR := /go/src/$(PKG)

MNT_ROOT ?= -v "/:/rootfs:ro"
MNT_SYS ?= -v "/sys:/sys:rw"
MNT_DOCKER_LIB ?= -v "/var/lib/docker:/var/lib/docker" -v "/mnt/sda1/var/lib/docker:/mnt/sda1/var/lib/docker"
MNT_DOCKER_LIB ?= -v "/var/lib/docker:/var/lib/docker" -v "/mnt/sda1/var/lib/docker:/mnt/sda1/var/lib/docker" -v "/var/log:/var/log"
MNT_KUBELET_LIB ?= -v "/var/lib/kubelet:/var/lib/kubelet"
MNT_RUN ?= -v "/var/run:/var/run:rw"

Expand Down
1 change: 1 addition & 0 deletions pkg/localkubectl/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func (d *Controller) StartCtr(ctrId, etcdDataDir string) error {
"/var/lib/docker:/var/lib/docker",
"/mnt/sda1/var/lib/docker:/mnt/sda1/var/lib/docker",
"/var/lib/kubelet:/var/lib/kubelet",
"/var/log:rw",
"/var/run:/var/run:rw",
"/:/rootfs:ro",
}
Expand Down

0 comments on commit 37ca97a

Please sign in to comment.