Documentation ¶
Overview ¶
Package apiserver contains utility functions to configure the connection parameters to the Kubernetes API server to advertise to peering clusters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressFromMasterNode ¶
func GetAddressFromMasterNode(ctx context.Context, clientset kubernetes.Interface) (address string, err error)
GetAddressFromMasterNode returns the API Server address using the IP of the master node of this cluster. The port is always defaulted to 6443.
Types ¶
type Config ¶
type Config struct { // The address of the Kubernetes API Server, advertised to the peering clusters. Address string // Whether the Kubernetes API Server is exposed through a trusted certification authority, // which does not need to be explicitly advertised. TrustedCA bool // The certification authority trusted by the API server. CA string }
Config defines the configuration parameters to contact the Kubernetes API server.
Click to show internal directories.
Click to hide internal directories.