kubernetes: k8s.io/kubernetes/cmd/kube-apiserver/app/options Index | Files

package options

import "k8s.io/kubernetes/cmd/kube-apiserver/app/options"

Package options contains flags and options for initializing an apiserver

Index

Package Files

globalflags.go options.go validation.go

func AddCustomGlobalFlags Uses

func AddCustomGlobalFlags(fs *pflag.FlagSet)

AddCustomGlobalFlags explicitly registers flags that internal packages register against the global flagsets from "flag". We do this in order to prevent unwanted flags from leaking into the kube-apiserver's flagset.

type ServerRunOptions Uses

type ServerRunOptions struct {
    GenericServerRunOptions *genericoptions.ServerRunOptions
    Etcd                    *genericoptions.EtcdOptions
    SecureServing           *genericoptions.SecureServingOptionsWithLoopback
    InsecureServing         *genericoptions.DeprecatedInsecureServingOptionsWithLoopback
    Audit                   *genericoptions.AuditOptions
    Features                *genericoptions.FeatureOptions
    Admission               *kubeoptions.AdmissionOptions
    Authentication          *kubeoptions.BuiltInAuthenticationOptions
    Authorization           *kubeoptions.BuiltInAuthorizationOptions
    CloudProvider           *kubeoptions.CloudProviderOptions
    StorageSerialization    *kubeoptions.StorageSerializationOptions
    APIEnablement           *genericoptions.APIEnablementOptions

    AllowPrivileged           bool
    EnableLogsHandler         bool
    EventTTL                  time.Duration
    KubeletConfig             kubeletclient.KubeletClientConfig
    KubernetesServiceNodePort int
    MaxConnectionBytesPerSec  int64
    ServiceClusterIPRange     net.IPNet // TODO: make this a list
    ServiceNodePortRange      utilnet.PortRange
    SSHKeyfile                string
    SSHUser                   string

    ProxyClientCertFile string
    ProxyClientKeyFile  string

    EnableAggregatorRouting bool

    MasterCount            int
    EndpointReconcilerType string

    ServiceAccountSigningKeyFile     string
    ServiceAccountIssuer             serviceaccount.TokenGenerator
    ServiceAccountTokenMaxExpiration time.Duration
}

ServerRunOptions runs a kubernetes api server.

func NewServerRunOptions Uses

func NewServerRunOptions() *ServerRunOptions

NewServerRunOptions creates a new ServerRunOptions object with default parameters

func (*ServerRunOptions) Flags Uses

func (s *ServerRunOptions) Flags() (fss apiserverflag.NamedFlagSets)

Flags returns flags for a specific APIServer by section name

func (*ServerRunOptions) Validate Uses

func (s *ServerRunOptions) Validate() []error

Validate checks ServerRunOptions and return a slice of found errs.

Package options imports 24 packages (graph) and is imported by 102 packages. Updated 2018-11-23. Refresh now. Tools for package owners.