@@ -75,6 +75,7 @@ func (s *CloudControllerManagerServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -75,6 +75,7 @@ func (s *CloudControllerManagerServer) AddFlags(fs *pflag.FlagSet) {
fs.DurationVar(&s.RouteReconciliationPeriod.Duration,"route-reconciliation-period",s.RouteReconciliationPeriod.Duration,"The period for reconciling routes created for Nodes by cloud provider.")
fs.DurationVar(&s.RouteReconciliationPeriod.Duration,"route-reconciliation-period",s.RouteReconciliationPeriod.Duration,"The period for reconciling routes created for Nodes by cloud provider.")
fs.BoolVar(&s.ConfigureCloudRoutes,"configure-cloud-routes",true,"Should CIDRs allocated by allocate-node-cidrs be configured on the cloud provider.")
fs.BoolVar(&s.ConfigureCloudRoutes,"configure-cloud-routes",true,"Should CIDRs allocated by allocate-node-cidrs be configured on the cloud provider.")
fs.BoolVar(&s.EnableProfiling,"profiling",true,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.EnableProfiling,"profiling",true,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.EnableContentionProfiling,"contention-profiling",false,"Enable lock contention profiling, if profiling is enabled")
fs.StringVar(&s.ClusterCIDR,"cluster-cidr",s.ClusterCIDR,"CIDR Range for Pods in cluster.")
fs.StringVar(&s.ClusterCIDR,"cluster-cidr",s.ClusterCIDR,"CIDR Range for Pods in cluster.")
fs.BoolVar(&s.AllocateNodeCIDRs,"allocate-node-cidrs",false,"Should CIDRs for Pods be allocated and set on the cloud provider.")
fs.BoolVar(&s.AllocateNodeCIDRs,"allocate-node-cidrs",false,"Should CIDRs for Pods be allocated and set on the cloud provider.")
fs.StringVar(&s.Master,"master",s.Master,"The address of the Kubernetes API server (overrides any value in kubeconfig)")
fs.StringVar(&s.Master,"master",s.Master,"The address of the Kubernetes API server (overrides any value in kubeconfig)")
fs.StringVar(&s.ClusterSigningKeyFile,"cluster-signing-key-file",s.ClusterSigningKeyFile,"Filename containing a PEM-encoded RSA or ECDSA private key used to sign cluster-scoped certificates")
fs.StringVar(&s.ClusterSigningKeyFile,"cluster-signing-key-file",s.ClusterSigningKeyFile,"Filename containing a PEM-encoded RSA or ECDSA private key used to sign cluster-scoped certificates")
fs.StringVar(&s.ApproveAllKubeletCSRsForGroup,"insecure-experimental-approve-all-kubelet-csrs-for-group",s.ApproveAllKubeletCSRsForGroup,"The group for which the controller-manager will auto approve all CSRs for kubelet client certificates.")
fs.StringVar(&s.ApproveAllKubeletCSRsForGroup,"insecure-experimental-approve-all-kubelet-csrs-for-group",s.ApproveAllKubeletCSRsForGroup,"The group for which the controller-manager will auto approve all CSRs for kubelet client certificates.")
fs.BoolVar(&s.EnableProfiling,"profiling",true,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.EnableProfiling,"profiling",true,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.EnableContentionProfiling,"contention-profiling",false,"Enable lock contention profiling, if profiling is enabled")
fs.StringVar(&s.ClusterName,"cluster-name",s.ClusterName,"The instance prefix for the cluster")
fs.StringVar(&s.ClusterName,"cluster-name",s.ClusterName,"The instance prefix for the cluster")
fs.StringVar(&s.ClusterCIDR,"cluster-cidr",s.ClusterCIDR,"CIDR Range for Pods in cluster.")
fs.StringVar(&s.ClusterCIDR,"cluster-cidr",s.ClusterCIDR,"CIDR Range for Pods in cluster.")
fs.StringVar(&s.ServiceCIDR,"service-cluster-ip-range",s.ServiceCIDR,"CIDR Range for Services in cluster.")
fs.StringVar(&s.ServiceCIDR,"service-cluster-ip-range",s.ServiceCIDR,"CIDR Range for Services in cluster.")
@@ -150,6 +150,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -150,6 +150,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.Int32Var(&s.EventBurst,"event-burst",s.EventBurst,"Maximum size of a bursty event records, temporarily allows event records to burst to this number, while still not exceeding event-qps. Only used if --event-qps > 0")
fs.Int32Var(&s.EventBurst,"event-burst",s.EventBurst,"Maximum size of a bursty event records, temporarily allows event records to burst to this number, while still not exceeding event-qps. Only used if --event-qps > 0")
fs.BoolVar(&s.RunOnce,"runonce",s.RunOnce,"If true, exit after spawning pods from local manifests or remote urls. Exclusive with --api-servers, and --enable-server")
fs.BoolVar(&s.RunOnce,"runonce",s.RunOnce,"If true, exit after spawning pods from local manifests or remote urls. Exclusive with --api-servers, and --enable-server")
fs.BoolVar(&s.EnableDebuggingHandlers,"enable-debugging-handlers",s.EnableDebuggingHandlers,"Enables server endpoints for log collection and local running of containers and commands")
fs.BoolVar(&s.EnableDebuggingHandlers,"enable-debugging-handlers",s.EnableDebuggingHandlers,"Enables server endpoints for log collection and local running of containers and commands")
fs.BoolVar(&s.EnableContentionProfiling,"contention-profiling",false,"Enable lock contention profiling, if profiling is enabled")
fs.DurationVar(&s.MinimumGCAge.Duration,"minimum-container-ttl-duration",s.MinimumGCAge.Duration,"Minimum age for a finished container before it is garbage collected. Examples: '300ms', '10s' or '2h45m'")
fs.DurationVar(&s.MinimumGCAge.Duration,"minimum-container-ttl-duration",s.MinimumGCAge.Duration,"Minimum age for a finished container before it is garbage collected. Examples: '300ms', '10s' or '2h45m'")
fs.MarkDeprecated("minimum-container-ttl-duration","Use --eviction-hard or --eviction-soft instead. Will be removed in a future version.")
fs.MarkDeprecated("minimum-container-ttl-duration","Use --eviction-hard or --eviction-soft instead. Will be removed in a future version.")
fs.Int32Var(&s.MaxPerPodContainerCount,"maximum-dead-containers-per-container",s.MaxPerPodContainerCount,"Maximum number of old instances to retain per container. Each container takes up some disk space. Default: 1.")
fs.Int32Var(&s.MaxPerPodContainerCount,"maximum-dead-containers-per-container",s.MaxPerPodContainerCount,"Maximum number of old instances to retain per container. Each container takes up some disk space. Default: 1.")
// contentType is contentType of requests sent to apiserver.
// contentType is contentType of requests sent to apiserver.
...
@@ -115,6 +117,7 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -115,6 +117,7 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs.IntVar(&s.ConcurrentReplicaSetSyncs,"concurrent-replicaset-syncs",s.ConcurrentReplicaSetSyncs,"The number of ReplicaSets syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentReplicaSetSyncs,"concurrent-replicaset-syncs",s.ConcurrentReplicaSetSyncs,"The number of ReplicaSets syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.DurationVar(&s.ClusterMonitorPeriod.Duration,"cluster-monitor-period",s.ClusterMonitorPeriod.Duration,"The period for syncing ClusterStatus in ClusterController.")
fs.DurationVar(&s.ClusterMonitorPeriod.Duration,"cluster-monitor-period",s.ClusterMonitorPeriod.Duration,"The period for syncing ClusterStatus in ClusterController.")
fs.BoolVar(&s.EnableProfiling,"profiling",true,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.EnableProfiling,"profiling",true,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.EnableContentionProfiling,"contention-profiling",false,"Enable lock contention profiling, if profiling is enabled")
fs.StringVar(&s.Master,"master",s.Master,"The address of the federation API server (overrides any value in kubeconfig)")
fs.StringVar(&s.Master,"master",s.Master,"The address of the federation API server (overrides any value in kubeconfig)")
fs.StringVar(&s.Kubeconfig,"kubeconfig",s.Kubeconfig,"Path to kubeconfig file with authorization and master location information.")
fs.StringVar(&s.Kubeconfig,"kubeconfig",s.Kubeconfig,"Path to kubeconfig file with authorization and master location information.")
fs.StringVar(&s.ContentType,"kube-api-content-type",s.ContentType,"ContentType of requests sent to apiserver. Passing application/vnd.kubernetes.protobuf is an experimental feature now.")
fs.StringVar(&s.ContentType,"kube-api-content-type",s.ContentType,"ContentType of requests sent to apiserver. Passing application/vnd.kubernetes.protobuf is an experimental feature now.")