Linux/Docker/Kubernetes: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Install == | == Install == | ||
* | * install kubectl | ||
<pre> | <pre> | ||
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/kubernetes-archive-keyring.gpg | curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/kubernetes-archive-keyring.gpg | ||
Line 7: | Line 7: | ||
sudo apt update | sudo apt update | ||
apt-cache policy kubectl | sudo apt-cache policy kubectl | ||
apt install kubectl | sudo apt install kubectl | ||
kubectl version | |||
</pre> | </pre> | ||
* install helm | |||
<pre> | |||
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/helm.gpg > /dev/null | |||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm.list | |||
sudo apt update | |||
sudo apt-cache policy helm | |||
sudo apt install helm | |||
helm version | |||
</pre> | |||
* install k3d | |||
<pre> | |||
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash | |||
k3d version | |||
</pre> | |||
* test | |||
<pre> | |||
k3d cluster create mycluster | |||
kubectl get nodes | |||
</pre> | |||
[[Category:Linux/Docker]] | [[Category:Linux/Docker]] | ||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 10:20, 5 July 2023
Install
- install kubectl
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/kubernetes-archive-keyring.gpg echo "deb [signed-by=/etc/apt/trusted.gpg.d/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list sudo apt update sudo apt-cache policy kubectl sudo apt install kubectl kubectl version
- install helm
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/helm.gpg > /dev/null echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm.list sudo apt update sudo apt-cache policy helm sudo apt install helm helm version
- install k3d
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash k3d version
- test
k3d cluster create mycluster kubectl get nodes