Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbrooks committed Oct 18, 2017
1 parent 11ab068 commit 59e8819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubeadm/Dockerfile
Expand Up @@ -17,7 +17,7 @@ LABEL RUN /usr/bin/docker run -d --privileged --net=host --pid=host -v /:/rootfs

COPY launch.sh /usr/bin/

COPY service.template config.json.template tmpfiles.template /exports/
COPY service.template config.json.template /exports/

RUN mkdir -p /exports/hostfs/usr/local/bin/ && cp /usr/bin/{kubectl,kubeadm} /exports/hostfs/usr/local/bin/
RUN mkdir -p /exports/hostfs/etc/{kubernetes,cni}
Expand All @@ -26,6 +26,6 @@ RUN mkdir -p /var/lib/kubelet

# pluck out env vars from kubeadm drop-in and put them into a user-editable location

RUN cat /etc/systemd/system/kubelet.service.d/kubeadm.conf | grep Environment | sed 's/Environment="//g' | sed 's/\=/\=\"/' > /etc/kubernetes/kubeadm-env
RUN cat /etc/systemd/system/kubelet.service.d/kubeadm.conf | grep Environment | sed 's/Environment="//g' | sed 's/\=/\=\"/' > /exports/hostfs/etc/kubernetes/kubeadm-env

ENTRYPOINT ["/usr/bin/launch.sh"]

0 comments on commit 59e8819

Please sign in to comment.