Mirantis / virtlet

Kubernetes CRI implementation for running VM workloads
Apache License 2.0
739 stars 128 forks source link

How to expose service hosted in VM #904

Closed GOVYANSONG closed 4 years ago

GOVYANSONG commented 4 years ago

This is a question on how to expose a service hosted inside VM. Is there any documentation explaining this subject? Thanks in advance.

GOVYANSONG commented 4 years ago

From example given at https://www.mirantis.com/blog/virtlet-run-vms-as-kubernetes-pods/, it seems that a service manifest is sufficient for virtlet to expose service hosted within Windows VM.

jellonek commented 4 years ago

There is no need to "expose" anything from VM. Any listening in VM port can be used as a port in kubernetes service.