diff --git a/Dockerfile b/Dockerfile index b386efb..a0b236b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM candidate-registry.fedoraproject.org/f27/kubernetes-master:1.7.1 +FROM registry.fedoraproject.org/f27/kubernetes-master:latest MAINTAINER "Jason Brooks" ENV container=docker -ENV NAME=kubernetes-apiserver VERSION=1.7.1 RELEASE=0 ARCH=x86_64 +ENV NAME=kubernetes-apiserver VERSION=0 RELEASE=14 ARCH=x86_64 LABEL BZComponent="$NAME" \ name="$FGC/$NAME" \ version="$VERSION" \ @@ -13,11 +13,11 @@ LABEL BZComponent="$NAME" \ COPY launch.sh /usr/bin/kube-apiserver-docker.sh -RUN chmod +x /usr/bin/kube-apiserver +RUN chmod +x /usr/bin/kube-apiserver* LABEL RUN /usr/bin/docker/ run -d --net=host -p 443:443 -COPY service.template config.json.template /exports/ +COPY service.template config.json.template tmpfiles.template /exports/ RUN mkdir -p /exports/hostfs/usr/local/bin/ && cp /usr/bin/kubectl /exports/hostfs/usr/local/bin/kubectl diff --git a/config.json.template b/config.json.template index 8a58c2a..ec6bae5 100644 --- a/config.json.template +++ b/config.json.template @@ -7,8 +7,8 @@ "process": { "terminal": false, "user": { - "uid": 994, - "gid": 996 + "uid": 996, + "gid": 994 }, "args": [ "/usr/bin/kube-apiserver-docker.sh" @@ -155,6 +155,15 @@ "rbind", "rprivate" ] + }, + { + "destination": "/var/run/kubernetes", + "type": "bind", + "source": "/var/run/kubernetes", + "options": [ + "rw", + "rbind" + ] } ], "linux": { diff --git a/launch.sh b/launch.sh old mode 100644 new mode 100755 diff --git a/tmpfiles.template b/tmpfiles.template new file mode 100644 index 0000000..0fc3bdf --- /dev/null +++ b/tmpfiles.template @@ -0,0 +1 @@ +d /var/run/kubernetes 0755 kube kube -