LoginSignup
0
0

More than 3 years have passed since last update.

Manjaro Linuxでk3sをインストールして起動する

Last updated at Posted at 2020-11-23

インストール

yay k3s

起動

sudo k3s server --write-kubeconfig-mode 644
sudo k3s agent

使う

k3s kubectl get po

k3sコマンドを使わないで素のkubectlを使いたい

export KUBECONFIG="/etc/rancher/k3s/k3s.yaml"

永続的にする場合は、これを.zshrcとかに書く。書いたら source ~/.zshrc とかするとすぐ使えるよ。

参考

Rancher Docs: K3s - Lightweight Kubernetes

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0