feat(jenkins-agent): refs #7442 Install kubectl 1.26.0
This commit is contained in:
parent
0bc11da3fe
commit
0b3221bdd3
|
@ -20,6 +20,17 @@ RUN apt-get install -y \
|
|||
wget \
|
||||
curl
|
||||
|
||||
# Kubernetes client
|
||||
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg \
|
||||
&& curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.26/deb/Release.key \
|
||||
| gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \
|
||||
&& chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg \
|
||||
&& echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.26/deb/ /' \
|
||||
| tee /etc/apt/sources.list.d/kubernetes.list \
|
||||
&& chmod 644 /etc/apt/sources.list.d/kubernetes.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y kubectl
|
||||
|
||||
# Docker compose
|
||||
RUN curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` \
|
||||
-o /usr/local/bin/docker-compose \
|
||||
|
|
Loading…
Reference in New Issue