Kubectl: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "<source lang="bash"> sudo curl -fsSLo /etc/apt/keyrings/kubernetes-archive-keyring.gpg\ https://packages.cloud.google.com/apt/doc/apt-key.gpg cat << EOF | sudo tee /etc/apt/...")
 
Line 19: Line 19:
{|
{|
| valign="top" |
| valign="top" |
* [https://www.redhat.com/sysadmin/kubeconfig Kube » Config]
* [https://kubernetes.io/docs/tasks/tools/ Kube » Install]
* [https://kubernetes.io/docs/tasks/tools/ Kube » Install]



Revision as of 00:47, 13 April 2023

sudo curl -fsSLo /etc/apt/keyrings/kubernetes-archive-keyring.gpg\
 https://packages.cloud.google.com/apt/doc/apt-key.gpg

cat << EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list >/dev/null
deb [arch=$(dpkg --print-architecture)\
 signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg]\
 https://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt update && sudo apt install -y apt-transport-https curl
sudo apt install -y docker-ce=5:20.10.14~3-0~ubuntu-focal\
 kubelet=1.23.5-00 kubeadm=1.23.5-00 kubectl=1.23.5-00
sudo apt-mark hold docker-ce kubelet kubeadm kubectl
sudo apt install docker-compose

References