Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 0 additions & 78 deletions 00_kubernetes-etcd

This file was deleted.

84 changes: 0 additions & 84 deletions 02_kubernetes-master

This file was deleted.

97 changes: 0 additions & 97 deletions 03_kubernetes-minion

This file was deleted.

14 changes: 7 additions & 7 deletions 01_kubernetes-client → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
# ssh `docker inspect -f '{{ .NetworkSettings.IPAddress }}' kubernetes-client`

# Use the base images
FROM ubuntu:15.04
FROM ubuntu:16.04
MAINTAINER Yongbok Kim <ruo91@yongbok.net>

# Change the repository
#RUN sed -i 's/archive.ubuntu.com/kr.archive.ubuntu.com/g' /etc/apt/sources.list
RUN sed -i 's/archive.ubuntu.com/ftp.daumkakao.com/g' /etc/apt/sources.list

# The last update and install package for docker
RUN apt-get update && apt-get install -y supervisor openssh-server nano net-tools iputils-ping
Expand All @@ -28,9 +28,9 @@ WORKDIR $SRC_DIR
ENV KUBERNETES_HOME $SRC_DIR/kubernetes
ENV PATH $PATH:$KUBERNETES_HOME/client/bin
ADD kubernetes-client-linux-amd64.tar.gz $SRC_DIR
ADD conf/cluster/06_nginx.yaml /opt/nginx.yaml
ADD https://raw.githubusercontent.com/kubernetes/kubernetes/master/cluster/addons/kube-ui/kube-ui-rc.yaml /opt/kube-ui-rc.yaml
ADD https://raw.githubusercontent.com/kubernetes/kubernetes/master/cluster/addons/kube-ui/kube-ui-svc.yaml /opt/kube-ui-svc.yaml
ADD conf/yaml/nginx.yaml $SRC_DIR/nginx.yaml
ADD conf/yaml/skydns.yaml $SRC_DIR/skydns.yaml
ADD conf/yaml/dashboard.yaml $SRC_DIR/dashboard.yaml
RUN echo '# Kubernetes' >> /etc/profile \
&& echo "export KUBERNETES_HOME=$KUBERNETES_HOME" >> /etc/profile \
&& echo 'export PATH=$PATH:$KUBERNETES_HOME/client/bin' >> /etc/profile \
Expand All @@ -42,9 +42,9 @@ ADD conf/supervisord/00_default.conf /etc/supervisor/conf.d/supervisord.conf

# SSH
RUN mkdir /var/run/sshd
RUN sed -i 's/without-password/yes/g' /etc/ssh/sshd_config
RUN sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
RUN sed -i '/^#UseLogin/ s:.*:UseLogin yes:' /etc/ssh/sshd_config
RUN sed -i 's/\#AuthorizedKeysFile/AuthorizedKeysFile/g' /etc/ssh/sshd_config
RUN sed -i '/^PermitRootLogin/ s:.*:PermitRootLogin yes:' /etc/ssh/sshd_config

# Set the root password for ssh
RUN echo 'root:kubernetes' |chpasswd
Expand Down
Loading