Difference between revisions of "Kubectl in Amazon Linux"

From wikieduonline
Jump to navigation Jump to search
(Created page with "<pre> cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$basearch enabled=...")
 
 
Line 1: Line 1:
 +
{{lc}}
 
<pre>
 
<pre>
 
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
 
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo

Latest revision as of 10:45, 7 July 2022

cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$basearch
enabled=1
gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
sudo yum install -y kubectl

See also[edit]

Advertising: