Add the addon manager and dashboard to the iso.

pull/128/head
Dan Lorenc 2016-05-28 11:05:12 -07:00
parent d969d86f9b
commit 7fb536ec38
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,23 @@
apiVersion: v1
kind: Pod
metadata:
name: kube-addon-manager
namespace: kube-system
version: v1
spec:
hostNetwork: true
containers:
- name: kube-addon-manager
image: gcr.io/google-containers/kube-addon-manager:v1
resources:
requests:
cpu: 5m
memory: 50Mi
volumeMounts:
- mountPath: /etc/kubernetes/
name: addons
readOnly: true
volumes:
- hostPath:
path: /etc/kubernetes/
name: addons

View File

@ -25,6 +25,11 @@ ADD nsenter $ROOTFS/usr/bin/
ADD socat $ROOTFS/usr/bin
ADD ethtool $ROOTFS/usr/bin
# Add addons
ADD addon-manager.yaml $ROOTFS/etc/kubernetes/manifests/
ADD dashboard-rc.yaml $ROOTFS/etc/kubernetes/addons/
ADD dashboard-svc.yaml $ROOTFS/etc/kubernetes/addons/
# Get a specific version of Docker. This will overwrite the binary installed
# in the base image.
# The --strip-components=3 flag will have to change as we switch docker versions

View File

@ -20,6 +20,8 @@ ISO=minikube.iso
tmpdir=$(mktemp -d)
echo "Building in $tmpdir."
cp -r . $tmpdir/
# Copy in the addons
cp ../addons/* $tmpdir/
pushd $tmpdir