kubeproxy

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package kubeproxy provides the Kubernetes kube-proxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointEntry

type EndpointEntry struct {
	IP   string
	Port int32
}

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(s store.Store, mode ProxyMode, clusterCIDR string, logger *slog.Logger) *Proxy

func (*Proxy) Run

func (p *Proxy) Run(ctx context.Context) error

type ProxyMode

type ProxyMode string
const (
	ModeIPTables  ProxyMode = "iptables"
	ModeNFTables  ProxyMode = "nftables"
	ModeUserspace ProxyMode = "userspace"
)

type ServiceProxy

type ServiceProxy struct {
	Name      string
	Namespace string
	ClusterIP string
	Ports     []k8s.ServicePort
	Endpoints []EndpointEntry
}

Jump to

Keyboard shortcuts

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