RegisterNode:true,// will be ignored if no apiserver is configured
RegisterSchedulable:true,
RegistryBurst:10,
ResourceContainer:"/kubelet",
RktPath:"",
RktStage1Image:"",
RootDirectory:defaultRootDir,
SerializeImagePulls:true,
SyncFrequency:10*time.Second,
SystemContainer:"",
ReconcileCIDR:true,
KubeAPIQPS:5.0,
KubeAPIBurst:10,
Port:ports.KubeletPort,
ReadOnlyPort:ports.KubeletReadOnlyPort,
RegisterNode:true,// will be ignored if no apiserver is configured
RegisterSchedulable:true,
RegistryBurst:10,
ResourceContainer:"/kubelet",
RktPath:"",
RktStage1Image:"",
RootDirectory:defaultRootDir,
SerializeImagePulls:true,
StreamingConnectionIdleTimeout:5*time.Minute,
SyncFrequency:10*time.Second,
SystemContainer:"",
ReconcileCIDR:true,
KubeAPIQPS:5.0,
KubeAPIBurst:10,
}
}
...
...
@@ -299,7 +301,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.ClusterDomain,"cluster-domain",s.ClusterDomain,"Domain for this cluster. If set, kubelet will configure all containers to search this domain in addition to the host's search domains")
fs.StringVar(&s.MasterServiceNamespace,"master-service-namespace",s.MasterServiceNamespace,"The namespace from which the kubernetes master services should be injected into pods")
fs.IPVar(&s.ClusterDNS,"cluster-dns",s.ClusterDNS,"IP address for a cluster DNS server. If set, kubelet will configure all containers to use this for DNS resolution in addition to the host's DNS servers")
fs.DurationVar(&s.StreamingConnectionIdleTimeout,"streaming-connection-idle-timeout",0,"Maximum time a streaming connection can be idle before the connection is automatically closed. Example: '5m'")
fs.DurationVar(&s.StreamingConnectionIdleTimeout,"streaming-connection-idle-timeout",s.StreamingConnectionIdleTimeout,"Maximum time a streaming connection can be idle before the connection is automatically closed. Example: '5m'")
fs.DurationVar(&s.NodeStatusUpdateFrequency,"node-status-update-frequency",s.NodeStatusUpdateFrequency,"Specifies how often kubelet posts node status to master. Note: be cautious when changing the constant, it must work with nodeMonitorGracePeriod in nodecontroller. Default: 10s")
fs.IntVar(&s.ImageGCHighThresholdPercent,"image-gc-high-threshold",s.ImageGCHighThresholdPercent,"The percent of disk usage after which image garbage collection is always run. Default: 90%")
fs.IntVar(&s.ImageGCLowThresholdPercent,"image-gc-low-threshold",s.ImageGCLowThresholdPercent,"The percent of disk usage before which image garbage collection is never run. Lowest disk usage to garbage collect to. Default: 80%")
...
...
@@ -315,7 +317,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.RktStage1Image,"rkt-stage1-image",s.RktStage1Image,"image to use as stage1. Local paths and http/https URLs are supported. If empty, the 'stage1.aci' in the same directory as '--rkt-path' will be used")
fs.StringVar(&s.SystemContainer,"system-container",s.SystemContainer,"Optional resource-only container in which to place all non-kernel processes that are not already in a container. Empty for no container. Rolling back the flag requires a reboot. (Default: \"\").")
fs.BoolVar(&s.ConfigureCBR0,"configure-cbr0",s.ConfigureCBR0,"If true, kubelet will configure cbr0 based on Node.Spec.PodCIDR.")
fs.IntVar(&s.MaxPods,"max-pods",40,"Number of Pods that can run on this Kubelet.")
fs.IntVar(&s.MaxPods,"max-pods",s.MaxPods,"Number of Pods that can run on this Kubelet.")
fs.StringVar(&s.DockerExecHandlerName,"docker-exec-handler",s.DockerExecHandlerName,"Handler to use when executing a command in a container. Valid values are 'native' and 'nsenter'. Defaults to 'native'.")
fs.StringVar(&s.PodCIDR,"pod-cidr","","The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master.")
fs.StringVar(&s.ResolverConfig,"resolv-conf",kubelet.ResolvConfDefault,"Resolver configuration file used as the basis for the container DNS resolution configuration.")
...
...
@@ -324,7 +326,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.BoolVar(&s.ReallyCrashForTesting,"really-crash-for-testing",s.ReallyCrashForTesting,"If true, when panics occur crash. Intended for testing.")
fs.Float64Var(&s.ChaosChance,"chaos-chance",s.ChaosChance,"If > 0.0, introduce random client errors and latency. Intended for testing. [default=0.0]")
fs.BoolVar(&s.Containerized,"containerized",s.Containerized,"Experimental support for running kubelet in a container. Intended for testing. [default=false]")
fs.Uint64Var(&s.MaxOpenFiles,"max-open-files",1000000,"Number of files that can be opened by Kubelet process. [default=1000000]")
fs.Uint64Var(&s.MaxOpenFiles,"max-open-files",s.MaxOpenFiles,"Number of files that can be opened by Kubelet process. [default=1000000]")
fs.BoolVar(&s.ReconcileCIDR,"reconcile-cidr",s.ReconcileCIDR,"Reconcile node CIDR with the CIDR specified by the API server. No-op if register-node or configure-cbr0 is false. [default=true]")
fs.BoolVar(&s.RegisterSchedulable,"register-schedulable",s.RegisterSchedulable,"Register the node as schedulable. No-op if register-node is false. [default=true]")
fs.Float32Var(&s.KubeAPIQPS,"kube-api-qps",s.KubeAPIQPS,"QPS to use while talking with kubernetes apiserver")
--root-dir="/var/lib/kubelet": Directory path for managing kubelet files (volume mounts,etc).
--runonce[=false]: If true, exit after spawning pods from local manifests or remote urls. Exclusive with --api-servers, and --enable-server
--serialize-image-pulls[=true]: Pull images one at a time. We recommend *not* changing the default value on nodes that run docker daemon with version < 1.9 or an Aufs storage backend. Issue #10959 has more details. [default=true]
--streaming-connection-idle-timeout=0: Maximum time a streaming connection can be idle before the connection is automatically closed. Example: '5m'
--streaming-connection-idle-timeout=5m0s: Maximum time a streaming connection can be idle before the connection is automatically closed. Example: '5m'
--sync-frequency=10s: Max period between synchronizing running containers and config
--system-container="": Optional resource-only container in which to place all non-kernel processes that are not already in a container. Empty for no container. Rolling back the flag requires a reboot. (Default: "").
--tls-cert-file="": File containing x509 Certificate for HTTPS. (CA cert, if any, concatenated after server cert). If --tls-cert-file and --tls-private-key-file are not provided, a self-signed certificate and key are generated for the public address and saved to the directory passed to --cert-dir.