kubernetes

package
v0.0.0-...-5fb8a3f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package kubernetes provides the kubernetes backend.

Index

Constants

View Source
const (
	// DNSSchemaVersion is the schema version: https://github.com/kubernetes/dns/blob/master/docs/specification.md
	DNSSchemaVersion = "1.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubernetes

type Kubernetes struct {

	// A Kubernetes ClientSet with read access to endpoints and services
	ClientSet kubernetes.Interface
	// contains filtered or unexported fields
}

Kubernetes is a DNS handler that implements the Kubernetes DNS-Based Service Discovery specification. https://github.com/kubernetes/dns/blob/master/docs/specification.md

func New

func New(clusterDomain string, ipRanges []netip.Prefix) *Kubernetes

New returns an initialized Kubernetes. Kubernetes DNS records will be served under the clusterDomain. Additionally, reverse queries for services and pods are served under the given ipRanges.

func (*Kubernetes) HandleDNS

func (k *Kubernetes) HandleDNS(r *netDNS.Request)

func (*Kubernetes) Run

func (k *Kubernetes) Run(ctx context.Context) error

Run maintains the in-memory cache of Kubernetes services and endpoints.

Directories

Path Synopsis
Package object holds functions that convert the objects from the k8s API in to a more memory efficient structures.
Package object holds functions that convert the objects from the k8s API in to a more memory efficient structures.

Jump to

Keyboard shortcuts

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