Skip to content

Commit 688f308

Browse files
authored
Merge pull request #2095 from zhaojizhuang/k3s-mod
fix limactl shell k3s kubectl command failed
2 parents 6eea9ec + 0aed871 commit 688f308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/k3s.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Deploy kubernetes via k3s (which installs a bundled containerd).
22
# $ limactl start ./k3s.yaml
3-
# $ limactl shell k3s sudo kubectl
3+
# $ limactl shell k3s kubectl
44
#
55
# It can be accessed from the host by exporting the kubeconfig file;
66
# the ports are already forwarded automatically by lima:
@@ -40,7 +40,7 @@ provision:
4040
script: |
4141
#!/bin/sh
4242
if [ ! -d /var/lib/rancher/k3s ]; then
43-
curl -sfL https://get.k3s.io | sh -
43+
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --write-kubeconfig-mode 644" sh -
4444
fi
4545
probes:
4646
- script: |

0 commit comments

Comments
 (0)