mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-01 03:15:01 +00:00
For the time being I've decided to exploit shared mounts to make `/opt/cni` and `/etc/cni` work as expected. We need these directories to appear writable on the host, and allow Weave Net pod to bind-mount out them in order to install plugin binaries, and allow for vanilla CNI plugins to be also accessible to kubelet. Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
9 lines
262 B
Bash
Executable File
9 lines
262 B
Bash
Executable File
#!/bin/bash -eu
|
|
[ "${#@}" -gt 1 ] || (echo "Usage: ${0} <node> <join_args>" ; exit 1)
|
|
name="node-${1}"
|
|
shift
|
|
disk="kube-${name}-disk.img"
|
|
set -x
|
|
rm -f "${disk}"
|
|
../../bin/moby run hyperkit -cpus 2 -mem 4096 -disk-size 1024 -disk "${disk}" -data "${*}" kube-node
|