Documentation
¶
Overview ¶
Package kube watches Kubernetes for NodePort and LoadBalancer service types. It exposes the services as follows: - [namespaced network - admin install]: It uses API tracker to expose the ports on the host through host-switch.exe - [namespaced network - non-admin install]: It uses API tracker to expose the ports on the host through host-switch.exe; however, the exposed ports are only bound to 127.0.0.1 on the host machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchForServices ¶
func WatchForServices( ctx context.Context, configPath string, k8sServiceListenerIP net.IP, portTracker tracker.Tracker, ) error
WatchForServices watches Kubernetes for NodePort and LoadBalancer services and create listeners on 0.0.0.0 matching them. Any connection errors are ignored and retried.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.