File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -46,3 +46,9 @@ probes:
4646 The k3s kubeconfig file has not yet been created.
4747 Run "limactl shell k3s sudo journalctl -u k3s" to check the log.
4848 If that is still empty, check the bottom of the log at "/var/log/cloud-init-output.log".
49+ message : |
50+ To run `kubectl` on the host (assumes kubectl is installed):
51+ $ mkdir -p "{{.Dir}}/conf"
52+ $ export KUBECONFIG="{{.Dir}}/conf/kubeconfig.yaml"
53+ $ limactl shell {{.Name}} sudo cat /etc/rancher/k3s/k3s.yaml >$KUBECONFIG
54+ $ kubectl ...
Original file line number Diff line number Diff line change @@ -106,3 +106,9 @@ probes:
106106 echo >&2 "kubernetes cluster is not up and running yet"
107107 exit 1
108108 fi
109+ message : |
110+ To run `kubectl` on the host (assumes kubectl is installed):
111+ $ mkdir -p "{{.Dir}}/conf"
112+ $ export KUBECONFIG="{{.Dir}}/conf/kubeconfig.yaml"
113+ $ limactl shell {{.Name}} sudo cat /etc/kubernetes/admin.conf >$KUBECONFIG
114+ $ kubectl ...
You can’t perform that action at this time.
0 commit comments