Sign inSign up

cuiyf/kubectl

By cuiyf

Updated about 4 years ago

Image
1

279

cuiyf/kubectl repository overview

Dockerfile

FROM centos:7

MAINTAINER cyf 
ENV KUBE_LATEST_VERSION="v1.14.2"

COPY ./kubernetes.repo /etc/yum.repos.d/

RUN yum update -y \
 && yum install -y kubectl-1.14.2

COPY ./config /root/.kube/

CMD ["bash"]

kubernetes.repo

[kubernetes]
name=Kubernetes Repo
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
gpgcheck=0
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
enabled=1

Tag summary

Content type

Image

Digest

sha256:5f2c75c95

Size

143.8 MB

Last updated

about 4 years ago

docker pull cuiyf/kubectl:1.20.11