AIAP Libvirt: Add kubectl install
Change-Id: I4b325958906ba723ec22ebdedb9b5607b74a2683
This commit is contained in:
parent
a644188d8d
commit
8dddae9daa
@ -4,6 +4,9 @@ FROM ${BASE_IMAGE}
|
|||||||
SHELL ["bash", "-exc"]
|
SHELL ["bash", "-exc"]
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
ARG k8s_version=v1.18.3
|
||||||
|
ARG kubectl_url=https://storage.googleapis.com/kubernetes-release/release/"${k8s_version}"/bin/linux/amd64/kubectl
|
||||||
|
|
||||||
RUN apt-get update ;\
|
RUN apt-get update ;\
|
||||||
apt-get dist-upgrade -y ;\
|
apt-get dist-upgrade -y ;\
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
@ -28,7 +31,9 @@ RUN apt-get update ;\
|
|||||||
systemctl enable libvirtd ;\
|
systemctl enable libvirtd ;\
|
||||||
systemctl enable virtlogd ;\
|
systemctl enable virtlogd ;\
|
||||||
echo 'user = "root"' >> /etc/libvirt/qemu.conf ;\
|
echo 'user = "root"' >> /etc/libvirt/qemu.conf ;\
|
||||||
echo 'group = "root"' >> /etc/libvirt/qemu.conf
|
echo 'group = "root"' >> /etc/libvirt/qemu.conf ;\
|
||||||
|
curl -sSLo /usr/local/bin/kubectl "${kubectl_url}" ;\
|
||||||
|
chmod +x /usr/local/bin/kubectl
|
||||||
|
|
||||||
COPY assets /opt/assets/
|
COPY assets /opt/assets/
|
||||||
RUN cp -ravf /opt/assets/* / ;\
|
RUN cp -ravf /opt/assets/* / ;\
|
||||||
|
Loading…
Reference in New Issue
Block a user