Update kind to 0.4.0
This commit is contained in:
parent
7c6ffeaeac
commit
975a63516d
2 changed files with 20 additions and 17 deletions
|
@ -35,36 +35,39 @@ RUN mkdir -p /go/src/k8s.io/kubernetes \
|
||||||
# - graphviz package for graphing profiles
|
# - graphviz package for graphing profiles
|
||||||
# - bc for shell to junit
|
# - bc for shell to junit
|
||||||
# - rpm for building RPMs with Bazel
|
# - rpm for building RPMs with Bazel
|
||||||
RUN apt-get update && \
|
RUN apt-get update \
|
||||||
apt-get install -y bc \
|
&& apt-get install -y \
|
||||||
rpm && \
|
bc \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rpm \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG K8S_RELEASE
|
ARG K8S_RELEASE
|
||||||
ARG ETCD_VERSION
|
ARG ETCD_VERSION
|
||||||
|
|
||||||
RUN wget https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl \
|
RUN curl -sSL https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
|
||||||
&& chmod +x /usr/local/bin/kubectl
|
&& chmod +x /usr/local/bin/kubectl
|
||||||
|
|
||||||
RUN wget https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kube-apiserver -O /usr/local/bin/kube-apiserver \
|
RUN curl -sSL https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/amd64/kube-apiserver -o /usr/local/bin/kube-apiserver \
|
||||||
&& chmod +x /usr/local/bin/kube-apiserver
|
&& chmod +x /usr/local/bin/kube-apiserver
|
||||||
|
|
||||||
RUN curl -L https://storage.googleapis.com/etcd/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
|
RUN curl -sSL https://storage.googleapis.com/etcd/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \
|
||||||
&& mkdir -p /tmp/etcd-download \
|
&& mkdir -p /tmp/etcd-download \
|
||||||
&& tar xzvf /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -C /tmp/etcd-download --strip-components=1 \
|
&& tar xzvf /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -C /tmp/etcd-download --strip-components=1 \
|
||||||
&& cp /tmp/etcd-download/etcd /usr/local/bin \
|
&& cp /tmp/etcd-download/etcd /usr/local/bin \
|
||||||
&& rm -rf /tmp/etcd-download
|
&& rm -rf /tmp/etcd-download
|
||||||
|
|
||||||
|
RUN curl -sSL https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64 -o /usr/local/bin/kind \
|
||||||
|
&& chmod +x /usr/local/bin/kind
|
||||||
|
|
||||||
# install go
|
# install go
|
||||||
ENV GO_VERSION 1.12.6
|
ENV GO_VERSION 1.12.6
|
||||||
ENV GO_TARBALL "go${GO_VERSION}.linux-amd64.tar.gz"
|
ENV GO_TARBALL "go${GO_VERSION}.linux-amd64.tar.gz"
|
||||||
RUN wget -q "https://storage.googleapis.com/golang/${GO_TARBALL}" && \
|
RUN wget -q "https://storage.googleapis.com/golang/${GO_TARBALL}" \
|
||||||
tar xzf "${GO_TARBALL}" -C /usr/local && \
|
&& tar xzf "${GO_TARBALL}" -C /usr/local \
|
||||||
rm "${GO_TARBALL}"
|
&& rm "${GO_TARBALL}"
|
||||||
|
|
||||||
RUN go get github.com/onsi/ginkgo/ginkgo \
|
RUN go get github.com/onsi/ginkgo/ginkgo \
|
||||||
&& go get golang.org/x/lint/golint \
|
&& go get golang.org/x/lint/golint \
|
||||||
&& GO111MODULE="on" go get -u sigs.k8s.io/kind@master \
|
|
||||||
&& rm -rf /go/src/github.com
|
&& rm -rf /go/src/github.com
|
||||||
|
|
||||||
ENV KUBEBUILDER_ASSETS /usr/local/bin
|
ENV KUBEBUILDER_ASSETS /usr/local/bin
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
kind: Config
|
kind: Cluster
|
||||||
apiVersion: kind.sigs.k8s.io/v1alpha2
|
apiVersion: kind.sigs.k8s.io/v1alpha3
|
||||||
nodes:
|
nodes:
|
||||||
- role: control-plane
|
- role: control-plane
|
||||||
- role: worker
|
- role: worker
|
||||||
replicas: 2
|
- role: worker
|
||||||
|
|
Loading…
Reference in a new issue