Skip to content

Commit

Permalink
Merge pull request #128 from dlorenc/addons
Browse files Browse the repository at this point in the history
Add the addon manager and dashboard to the iso.
  • Loading branch information
luxas committed May 29, 2016
2 parents b8be458 + 4cd9e56 commit 38a7e05
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
1 change: 0 additions & 1 deletion deploy/addons/dashboard-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ metadata:
spec:
ports:
- port: 80
hostPort: 9090
targetPort: 9090
selector:
app: kubernetes-dashboard
File renamed without changes.
5 changes: 5 additions & 0 deletions deploy/iso/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions deploy/iso/addon-manager.yaml
Original file line number Diff line number Diff line change
@@ -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-amd64:v2
resources:
requests:
cpu: 5m
memory: 50Mi
volumeMounts:
- mountPath: /etc/kubernetes/
name: addons
readOnly: true
volumes:
- hostPath:
path: /etc/kubernetes/
name: addons
2 changes: 2 additions & 0 deletions deploy/iso/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 38a7e05

Please sign in to comment.