Skip to content

Commit a48d71f

Browse files
authored
Merge pull request #1871 from afbjorklund/k8s-sed
k8s: Stop using LIMA_CIDATA_SLIRP_IP_ADDRESS
2 parents f95319d + 45160ca commit a48d71f

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
@@ -123,7 +123,8 @@ provision:
123123
kubectl apply -f https://github.com/flannel-io/flannel/releases/download/v0.22.1/kube-flannel.yml
124124
# Control plane node isolation
125125
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
126-
sed -e "s/${LIMA_CIDATA_SLIRP_IP_ADDRESS:-192.168.5.15}/127.0.0.1/" -i $KUBECONFIG
126+
# Replace the server address with localhost, so that it works also from the host
127+
sed -e "/server:/ s|https://.*:\([0-9]*\)$|https://127.0.0.1:\1|" -i $KUBECONFIG
127128
mkdir -p ${HOME:-/root}/.kube && cp -f $KUBECONFIG ${HOME:-/root}/.kube/config
128129
probes:
129130
- description: "kubeadm to be installed"

0 commit comments

Comments
 (0)