install

sudo curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644

command

k3s kubectlみたいにk3sをつける必要がある。以下で切り替える。

export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
kubectl get pods -n kube-system
Counter: 130, today: 3, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS