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)
Click to show internal directories.
Click to hide internal directories.