Merge pull request #136 from kata-containers/kata-deploy-1.2-dockerfile

Kata deploy 1.2 dockerfile
This commit is contained in:
Jose Carlos Venegas Munoz
2018-08-16 14:05:00 -05:00
committed by GitHub
3 changed files with 10 additions and 8 deletions

View File

@@ -1,13 +1,15 @@
FROM centos/systemd FROM centos/systemd
ARG KATA_VER=1.1.0 ARG KATA_VER=1.2.0
ARG ARCH=x86_64
ARG KATA_URL=https://github.com/kata-containers/runtime/releases/download/${KATA_VER} ARG KATA_URL=https://github.com/kata-containers/runtime/releases/download/${KATA_VER}
ARG KATA_FILE=kata-static-${KATA_VER}-${ARCH}.tar.xz
ARG KUBECTL_VER=v1.10.2 ARG KUBECTL_VER=v1.10.2
RUN \ RUN \
curl -sOL ${KATA_URL}/kata-release-binaries.tar.xz && \ curl -sOL ${KATA_URL}/${KATA_FILE} && \
mkdir -p /opt/kata-artifacts && \ mkdir -p /opt/kata-artifacts && \
tar xvf kata-release-binaries.tar.xz -C /opt/kata-artifacts && \ tar xvf ${KATA_FILE} -C /opt/kata-artifacts/ && \
rm kata-release-binaries.tar.xz rm ${KATA_FILE}
RUN \ RUN \
curl -s -o /bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VER}/bin/linux/amd64/kubectl && \ curl -s -o /bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VER}/bin/linux/amd64/kubectl && \

View File

@@ -18,7 +18,7 @@ spec:
kata-containers.io/kata-runtime: cleanup kata-containers.io/kata-runtime: cleanup
containers: containers:
- name: kube-kata-cleanup - name: kube-kata-cleanup
image: katadocker/kata-deploy image: katadocker/kata-deploy:1.1.0
imagePullPolicy: Always imagePullPolicy: Always
command: [ "sh", "-c" ] command: [ "sh", "-c" ]
args: args:

View File

@@ -16,7 +16,7 @@ spec:
serviceAccountName: kata-label-node serviceAccountName: kata-label-node
containers: containers:
- name: kubelet-runtime-labeler-pod - name: kubelet-runtime-labeler-pod
image: katadocker/kata-deploy image: katadocker/kata-deploy:1.1.0
imagePullPolicy: Always imagePullPolicy: Always
command: [ "sh", "-c" ] command: [ "sh", "-c" ]
args: args:
@@ -56,7 +56,7 @@ spec:
kata-containers.io/container-runtime: cri-o kata-containers.io/container-runtime: cri-o
containers: containers:
- name: kube-kata - name: kube-kata
image: katadocker/kata-deploy image: katadocker/kata-deploy:1.1.0
imagePullPolicy: Always imagePullPolicy: Always
lifecycle: lifecycle:
preStop: preStop:
@@ -127,7 +127,7 @@ spec:
kata-containers.io/container-runtime: containerd kata-containers.io/container-runtime: containerd
containers: containers:
- name: kube-kata - name: kube-kata
image: katadocker/kata-deploy image: katadocker/kata-deploy:1.1.0
imagePullPolicy: Always imagePullPolicy: Always
lifecycle: lifecycle:
preStop: preStop: