coredns

package
v0.146.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// Namespace is the Kubernetes namespace under which CoreDNS lives.
	Namespace = "kube-system"
	// Name is the name of the Kubernetes Deployment object for CoreDNS.
	Name = "coredns"
	// ComputeTypeAnnotationKey is the key of the annotation driving CoreDNS'
	// scheduling.
	ComputeTypeAnnotationKey = "eks.amazonaws.com/compute-type"
)

Variables

This section is empty.

Functions

func IsSchedulableOnFargate

func IsSchedulableOnFargate(profiles []*api.FargateProfile) bool

IsSchedulableOnFargate analyzes the provided profiles to determine whether EKS' coredns deployment should be scheduled onto Fargate.

func IsScheduledOnFargate

func IsScheduledOnFargate(clientSet kubeclient.Interface) (bool, error)

IsScheduledOnFargate checks if EKS' coredns is scheduled onto Fargate.

func ScheduleOnFargate

func ScheduleOnFargate(clientSet kubeclient.Interface) error

ScheduleOnFargate modifies EKS' coredns deployment so that it can be scheduled on Fargate.

func WaitForScheduleOnFargate

func WaitForScheduleOnFargate(clientSet kubeclient.Interface, retryPolicy retry.Policy) error

WaitForScheduleOnFargate waits for coredns to be scheduled on Fargate. It will wait until it has detected that the scheduling has been successful, or until the retry policy times out, whichever happens first.

Types

This section is empty.

Jump to

Keyboard shortcuts

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