Skip to content

Commit d1d4732

Browse files
committed
Move config server change to provision instead
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 1f11800 commit d1d4732

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/k8s.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# the ports are already forwarded automatically by lima:
55
#
66
# $ export KUBECONFIG=$PWD/kubeconfig.yaml
7-
# $ limactl shell k8s sudo cat /etc/kubernetes/admin.conf | sed -e 's/192.168.5.15/127.0.0.1/' >$KUBECONFIG
7+
# $ limactl shell k8s sudo cat /etc/kubernetes/admin.conf >$KUBECONFIG
88
# $ kubectl get no
99
# NAME STATUS ROLES AGE VERSION
1010
# lima-k8s Ready control-plane,master 44s v1.22.3
@@ -73,6 +73,7 @@ provision:
7373
kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/v0.14.0/Documentation/kube-flannel.yml
7474
# Control plane node isolation
7575
kubectl taint nodes --all node-role.kubernetes.io/master-
76+
sed -e "s/${LIMA_CIDATA_SLIRP_IP_ADDRESS:-192.168.5.15}/127.0.0.1/" -i $KUBECONFIG
7677
- mode: user
7778
script: |
7879
#!/bin/bash

0 commit comments

Comments
 (0)