package
1.14.0-alpha.1
Repository: https://github.com/micnncim/kubernetes.git
Documentation: pkg.go.dev
# Functions
AddCertificateDirFlag adds the --certs-dir flag to the given flagset.
AddConfigFlag adds the --config flag to the given flagset.
AddControlPlanExtraArgsFlags adds the ExtraArgs flags for control plane components.
AddCSRDirFlag adds the --csr-dir flag to the given flagset.
AddCSRFlag adds the --csr-only flag to the given flagset.
AddIgnorePreflightErrorsFlag adds the --ignore-preflight-errors flag to the given flagset.
AddImageMetaFlags adds the --image-repository flag to the given flagset.
AddKubeConfigDirFlag adds the --kubeconfig-dir flag to the given flagset.
AddKubeConfigFlag adds the --kubeconfig flag to the given flagset.
NewBootstrapTokenOptions creates a new BootstrapTokenOptions object with the default values.
# Constants
APIServerAdvertiseAddress flag sets the IP address the API Server will advertise it's listening on.
APIServerBindPort flag sets the port for the API Server to bind to.
APIServerCertSANs flag sets extra Subject Alternative Names (SANs) to use for the API Server serving certificate.
APIServerExtraArgs flag sets a extra flags to pass to the API Server or override default ones in form of <flagname>=<value>.
CertificatesDir flag sets the path where to save and read the certificates.
CfgPath flag sets the path to kubeadm config file.
ControllerManagerExtraArgs flag sets extra flags to pass to the Controller Manager or override default ones in form of <flagname>=<value>.
ControlPlane flag instruct kubeadm to create a new control plane instance on this node.
CSRDir flag sets the location for CSRs and flags to be output.
CSROnly flag instructs kubeadm to create CSRs instead of automatically creating or renewing certs.
DryRun flag instruct kubeadm to don't apply any changes; just output what would be done.
FeatureGatesString flag sets key=value pairs that describe feature gates for various features.
FileDiscovery flag sets the file or URL from which to load cluster information (for file-based discovery).
IgnorePreflightErrors sets the path a list of checks whose errors will be shown as warnings.
ImageRepository sets the container registry to pull control plane images from.
KubeconfigDir flag sets the path where to save the kubeconfig file.
KubeconfigPath flag sets the kubeconfig file to use when talking to the cluster.
KubernetesVersion flag sets the Kubernetes version for the control plane.
NetworkingDNSDomain flag sets the domain for services, e.g.
NetworkingPodSubnet flag sets the range of IP addresses for the pod network.
NetworkingServiceSubnet flag sets the range of IP address for service VIPs.
NodeCRISocket flag sets the CRI socket to connect to.
NodeName flag sets the node name.
SchedulerExtraArgs flag sets extra flags to pass to the Scheduler or override default ones in form of <flagname>=<value>".
SkipTokenPrint flag instruct kubeadm to skip printing of the default bootstrap token generated by 'kubeadm init'.
TLSBootstrapToken flag sets the token used to temporarily authenticate with the Kubernetes Master to submit a certificate signing request (CSR) for a locally created key pair.
TokenDescription flag sets the description of the token.
TokenDiscovery flag sets the token used to validate cluster information fetched from the API server (for token-based discovery).
TokenDiscoveryCAHash flag instruct kubeadm to validate that the root CA public key matches this hash (for token-based discovery).
TokenDiscoverySkipCAHash flag instruct kubeadm to skip CA hash verification (for token-based discovery).
TokenGroups flag sets the authentication groups of the token.
TokenStr flags sets both the discovery-token and the tls-bootstrap-token when those values are not provided.
TokenTTL flag sets the time to live for token.
TokenUsages flag sets the usages of the token.
# Structs
BootstrapTokenOptions is a wrapper struct for adding bootstrap token-related flags to a FlagSet and applying the parsed flags to a InitConfiguration object later at runtime TODO: In the future, we might want to group the flags in a better way than adding them all individually like this.