Wire weaveutil unique-id into weave script

Also ensure the right host directories are mounted when create-bridge
is called from either the weave script or weave-kube.
This commit is contained in:
Bryan Boreham committed 2017-01-11 13:14:35 +00:00
1 parent ebcb7f6108
commit 7d308a4ac5
4 files changed
+29 -27

No files matched your search

+1 -1
View File
@@ -29,6 +29,7 @@ if [ "${EXPECT_NPC}" = "0" ]; then
WEAVE_NPC_OPTS=""
fi
export HOST_ROOT=/host
/home/weave/weave --local create-bridge --force $WEAVE_NPC_OPTS
# Kubernetes sets HOSTNAME to the host's hostname
@@ -100,7 +101,6 @@ post_start_actions() {
fi
fi
mkdir -p $HOST_ROOT/etc/cni/net.d
export HOST_ROOT
/home/weave/weave --local setup-cni
# Expose the weave network so host processes can communicate with pods
+5
View File
@@ -44,6 +44,8 @@ spec:
mountPath: /host/home
- name: cni-conf
mountPath: /host/etc
- name: dbus
mountPath: /host/var/lib/dbus
resources:
requests:
cpu: 10m
@@ -68,3 +70,6 @@ spec:
- name: cni-conf
hostPath:
path: /etc
- name: dbus
hostPath:
path: /var/lib/dbus