kubernetes: Use pkg/metadata

Still a flat/unstructured config space, but at least uses the mounting
machinery.

`boot.sh` continues to just work without modification.

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell
2017-07-17 13:36:06 +01:00
parent 23d6649de0
commit d48cc7998b
3 changed files with 6 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ onboot:
image: linuxkit/sysfs:006a65b30cfdd9d751d7ab042fde7eca2c3bc9dc image: linuxkit/sysfs:006a65b30cfdd9d751d7ab042fde7eca2c3bc9dc
- name: binfmt - name: binfmt
image: linuxkit/binfmt:0bde4ebd422099f45c5ee03217413523ad2223e5 image: linuxkit/binfmt:0bde4ebd422099f45c5ee03217413523ad2223e5
- name: metadata
image: linuxkit/metadata:f122f1b4e873f1d08cd67bd9105385fd923af0cb
- name: format - name: format
image: linuxkit/format:84a997e69051a1bf05b7c1926ab785bb07932954 image: linuxkit/format:84a997e69051a1bf05b7c1926ab785bb07932954
- name: mounts - name: mounts

View File

@@ -13,6 +13,8 @@ onboot:
image: linuxkit/sysfs:006a65b30cfdd9d751d7ab042fde7eca2c3bc9dc image: linuxkit/sysfs:006a65b30cfdd9d751d7ab042fde7eca2c3bc9dc
- name: binfmt - name: binfmt
image: linuxkit/binfmt:0bde4ebd422099f45c5ee03217413523ad2223e5 image: linuxkit/binfmt:0bde4ebd422099f45c5ee03217413523ad2223e5
- name: metadata
image: linuxkit/metadata:f122f1b4e873f1d08cd67bd9105385fd923af0cb
- name: format - name: format
image: linuxkit/format:84a997e69051a1bf05b7c1926ab785bb07932954 image: linuxkit/format:84a997e69051a1bf05b7c1926ab785bb07932954
- name: mounts - name: mounts

View File

@@ -12,9 +12,9 @@ until kubelet --kubeconfig=/var/lib/kubeadm/kubelet.conf \
--network-plugin=cni \ --network-plugin=cni \
--cni-conf-dir=/etc/cni/net.d \ --cni-conf-dir=/etc/cni/net.d \
--cni-bin-dir=/opt/cni/bin ; do --cni-bin-dir=/opt/cni/bin ; do
if [ ! -e /dev/sr0 ] ; then if [ ! -f /var/config/userdata ] ; then
sleep 1 sleep 1
else else
mount -o ro /dev/sr0 /mnt && kubeadm join --skip-preflight-checks $(cat /mnt/config) kubeadm join --skip-preflight-checks $(cat /var/config/userdata)
fi fi
done done