Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DeploymentName is the name of the coredns Deployment. DeploymentName = "coredns" // ManagedResourceName is the name of the ManagedResource. ManagedResourceName = "shoot-core-coredns" // CustomConfigMapName is the name of the custom CoreDNS ConfigMap. CustomConfigMapName = "coredns-custom" )
Variables ¶
View Source
var TimeoutWaitForManagedResource = 2 * time.Minute
TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.
Functions ¶
func CentralLoggingConfiguration ¶
func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)
CentralLoggingConfiguration returns a fluent-bit parser and filter for the CoreDNS logs.
func GetIPFamilyPolicy ¶ added in v1.120.0
func GetIPFamilyPolicy(ipFamilies []gardencorev1beta1.IPFamily, clusterIPs []net.IP) corev1.IPFamilyPolicy
GetIPFamilyPolicy returns the IPFamilyPolicy for the CoreDNS service based on the provided IP families and cluster IPs.
Types ¶
type Interface ¶
type Interface interface {
component.DeployWaiter
SetPodAnnotations(map[string]string)
SetNodeNetworkCIDRs([]net.IPNet)
SetPodNetworkCIDRs([]net.IPNet)
SetClusterIPs([]net.IP)
SetIPFamilies([]gardencorev1beta1.IPFamily)
}
Interface contains functions for a CoreDNS deployer.
type Values ¶
type Values struct {
// APIServerHost is the host of the kube-apiserver.
APIServerHost *string
// ClusterDomain is the domain used for cluster-wide DNS records handled by CoreDNS.
ClusterDomain string
// ClusterIPs is the IP address which should be used as `.spec.clusterIP` in the Service spec.
ClusterIPs []net.IP
// Image is the container image used for CoreDNS.
Image string
// PodAnnotations is the set of additional annotations to be used for the pods.
PodAnnotations map[string]string
// PodNetworkCIDRs are the CIDR of the pod network.
PodNetworkCIDRs []net.IPNet
// NodeNetworkCIDRs are the CIDR of the node network.
NodeNetworkCIDRs []net.IPNet
// AutoscalingMode indicates whether cluster proportional autoscaling is enabled.
AutoscalingMode gardencorev1beta1.CoreDNSAutoscalingMode
// ClusterProportionalAutoscalerImage is the container image used for the cluster proportional autoscaler.
ClusterProportionalAutoscalerImage string
// WantsVerticalPodAutoscaler indicates whether vertical autoscaler should be used.
WantsVerticalPodAutoscaler bool
// SearchPathRewriteCommonSuffixes contains common suffixes to be rewritten when SearchPathRewritesEnabled is set.
SearchPathRewriteCommonSuffixes []string
// IPFamilies specifies the IP protocol versions to use for core dns.
IPFamilies []gardencorev1beta1.IPFamily
}
Values is a set of configuration values for the coredns component.
Click to show internal directories.
Click to hide internal directories.