Kubectl: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 18: | Line 18: | ||
sudo apt install docker-compose | sudo apt install docker-compose | ||
</source> | </source> | ||
==kubeconfig== | |||
Kubernetes components like <code>kubelet</code>, <code>kube-controller-manager</code>, or <code>kubectl</code> use the <code>kubeconfig</code> file to interact with the Kubernetes API. Usually, the <code>kubectl</code> or oc commands use the <code>kubeconfig</code> file. | |||
==References== | ==References== |
Revision as of 00:54, 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
kubeconfig
Kubernetes components like kubelet
, kube-controller-manager
, or kubectl
use the kubeconfig
file to interact with the Kubernetes API. Usually, the kubectl
or oc commands use the kubeconfig
file.
References
| ||