package dns
import "k8s.io/kubernetes/pkg/dns"
Package DNS provides a backend for the skydns DNS server started by the kubedns cluster addon. It exposes the 2 interface method: Records and ReverseRecord, which skydns invokes according to the DNS queries it receives. It serves these records by consulting an in memory tree populated with Kubernetes Services and Endpoints received from the Kubernetes API server.
Index ¶
- type KubeDNS
- func NewKubeDNS(client clientset.Interface, domain string, federations map[string]string) (*KubeDNS, error)
- func (kd *KubeDNS) GetCacheAsJSON() (string, error)
- func (kd *KubeDNS) Records(name string, exact bool) (retval []skymsg.Service, err error)
- func (kd *KubeDNS) ReverseRecord(name string) (*skymsg.Service, error)
- func (kd *KubeDNS) Start()
- type TreeCache
Types ¶
type KubeDNS ¶
type KubeDNS struct {
// contains filtered or unexported fields
}
func NewKubeDNS ¶
func NewKubeDNS(client clientset.Interface, domain string, federations map[string]string) (*KubeDNS, error)
func (*KubeDNS) GetCacheAsJSON ¶
func (*KubeDNS) Records ¶
Records responds with DNS records that match the given name, in a format understood by the skydns server. If "exact" is true, a single record matching the given name is returned, otherwise all records stored under the subtree matching the name are returned.
func (*KubeDNS) ReverseRecord ¶
ReverseRecords performs a reverse lookup for the given name.
func (*KubeDNS) Start ¶
func (kd *KubeDNS) Start()
type TreeCache ¶
func NewTreeCache ¶
func NewTreeCache() *TreeCache
func (*TreeCache) Serialize ¶
Source Files ¶
dns.go doc.go treecache.go
- Version
- v1.4.0-beta.5
- Published
- Sep 15, 2016
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 19 minutes ago –
Tools for package owners.