types

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSStrategy

type DNSStrategy string

DNSStrategy defines the strategy which KIC will use to create Pod addresses.

const (
	// IPDNSStrategy defines a strategy where instead of DNS names KIC creates
	// addresses from IP addresses.
	IPDNSStrategy DNSStrategy = "ip"
	// ServiceScopedPodDNSStrategy defines a strategy where KIC creates addresses
	// using the following template:
	// pod-ip-address.service-name.my-namespace.svc.cluster.local
	// Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#a-aaaa-records-1
	//
	// Note: this is known to not work on GKE because it uses kube-dns instead
	// of coredns. GKE docs explicitly mention that:
	// > kube-dns only creates DNS records for Services that have Endpoints.
	//
	// Ref: https://cloud.google.com/kubernetes-engine/docs/how-to/kube-dns#service-dns-records
	ServiceScopedPodDNSStrategy DNSStrategy = "service"
	// NamespaceScopedPodDNSStrategy defines a strategy where KIC creates addresses
	// using the following template:
	// pod-ip-address.my-namespace.pod.cluster-domain.example
	// Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#a-aaaa-records-1
	NamespaceScopedPodDNSStrategy DNSStrategy = "pod"
)

func (DNSStrategy) String

func (d DNSStrategy) String() string

func (DNSStrategy) Validate

func (d DNSStrategy) Validate() error

Jump to

Keyboard shortcuts

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