Skip to content

Commit 4b8b972

Browse files
committed
Use the new format of message for easy copy/paste
Easier to select multiple lines, without the "$ " prompt. Separate the commands by dashes instead, like in docker. Signed-off-by: Anders F Björklund <[email protected]>
1 parent 3190530 commit 4b8b972

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

examples/k3s.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ probes:
5555
Run "limactl shell k3s sudo journalctl -u k3s" to check the log.
5656
If that is still empty, check the bottom of the log at "/var/log/cloud-init-output.log".
5757
message: |
58-
To run `kubectl` on the host (assumes kubectl is installed):
59-
$ mkdir -p "{{.Dir}}/conf"
60-
$ export KUBECONFIG="{{.Dir}}/conf/kubeconfig.yaml"
61-
$ limactl shell {{.Name}} sudo cat /etc/rancher/k3s/k3s.yaml >$KUBECONFIG
62-
$ kubectl ...
58+
To run `kubectl` on the host (assumes kubectl is installed), run the following commands:
59+
------
60+
mkdir -p "{{.Dir}}/conf"
61+
export KUBECONFIG="{{.Dir}}/conf/kubeconfig.yaml"
62+
limactl shell {{.Name}} sudo cat /etc/rancher/k3s/k3s.yaml >$KUBECONFIG
63+
kubectl ...
64+
------

examples/k8s.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ probes:
151151
exit 1
152152
fi
153153
message: |
154-
To run `kubectl` on the host (assumes kubectl is installed):
155-
$ mkdir -p "{{.Dir}}/conf"
156-
$ export KUBECONFIG="{{.Dir}}/conf/kubeconfig.yaml"
157-
$ limactl shell {{.Name}} sudo cat /etc/kubernetes/admin.conf >$KUBECONFIG
158-
$ kubectl ...
154+
To run `kubectl` on the host (assumes kubectl is installed), run the following commands:
155+
------
156+
mkdir -p "{{.Dir}}/conf"
157+
export KUBECONFIG="{{.Dir}}/conf/kubeconfig.yaml"
158+
limactl shell {{.Name}} sudo cat /etc/kubernetes/admin.conf >$KUBECONFIG
159+
kubectl ...
160+
------

0 commit comments

Comments
 (0)