+ SSH agent
+ Kubectl changes in review description
This commit is contained in:
parent
a77d65270a
commit
14925b27c1
3 changed files with 59 additions and 0 deletions
21
kubectl.md
Executable file
21
kubectl.md
Executable file
|
@ -0,0 +1,21 @@
|
|||
# kubectl
|
||||
|
||||
## Installation
|
||||
### Install on Debian Linux
|
||||
```
|
||||
sudo apt install -y apt-transport-https ca-certificates curl gnupg
|
||||
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.32/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||
sudo chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg # allow unprivileged APT programs to read this keyring
|
||||
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.32/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
|
||||
sudo chmod 644 /etc/apt/sources.list.d/kubernetes.list # helps tools such as command-not-found to work correctly
|
||||
sudo apt update
|
||||
sudo apt install -y kubectl
|
||||
```
|
||||
|
||||
### Shell completion
|
||||
Source the `kubectl completion bash` in the ~/.bashrc file on every login. A simple line which does it after pasting into CMd:
|
||||
```
|
||||
echo 'source <(kubectl completion bash)' >> ~/.bashrc
|
||||
```
|
||||
|
||||
[source](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)
|
Loading…
Add table
Add a link
Reference in a new issue