kube

package
v0.0.0-...-772f97d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL