Skip to content

Conversation

@jandubois
Copy link
Member

The ServicePort.Protocol is always uppercase, e.g. "TCP", but the api.IPPort.protocol is always lowercase, i.e. "tcp".

Since UDP support was added in #2411 the hostagent filters on the protocol values.

cc @pendo324 @balajiv113 @Nino-K

The ServicePort.Protocol is always uppercase, e.g. "TCP", but the
api.IPPort.protocol is always lowercase, i.e. "tcp".

Since UDP support was added in lima-vm#2411 the hostagent filters on the
protocol values.

Signed-off-by: Jan Dubois <[email protected]>
@jandubois
Copy link
Member Author

Testing (fails without this PR, succeeds after it is applied):

limactl start --tty=false template://k3s
export KUBECONFIG="$HOME/.lima/k3s/copied-from-guest/kubeconfig.yaml"
kubectl create deployment nginx --image=nginx
kubectl create service nodeport nginx --tcp=80:80 --node-port=32000
curl http://localhost:32000

@AkihiroSuda AkihiroSuda added this to the v1.0 milestone Oct 30, 2024
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 021c974 into lima-vm:master Oct 30, 2024
28 checks passed
@jandubois jandubois deleted the k8s-portforwarding branch October 30, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants