Add the addon manager and dashboard to the iso.
parent
d969d86f9b
commit
7fb536ec38
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue