// The following fields are deprecated and unused except in flag parsing.
MinionRegexpstring
MachineListutil.StringList
SyncNodeListbool
SyncNodeStatusbool
NodeMilliCPUint64
NodeMemoryresource.Quantity
}
}
// NewCMServer creates a new CMServer with a default config.
// NewCMServer creates a new CMServer with a default config.
...
@@ -107,7 +98,6 @@ func NewCMServer() *CMServer {
...
@@ -107,7 +98,6 @@ func NewCMServer() *CMServer {
PVClaimBinderSyncPeriod:10*time.Second,
PVClaimBinderSyncPeriod:10*time.Second,
RegisterRetryCount:10,
RegisterRetryCount:10,
PodEvictionTimeout:5*time.Minute,
PodEvictionTimeout:5*time.Minute,
SyncNodeList:true,
ClusterName:"kubernetes",
ClusterName:"kubernetes",
}
}
return&s
return&s
...
@@ -121,8 +111,6 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -121,8 +111,6 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.CloudConfigFile,"cloud-config",s.CloudConfigFile,"The path to the cloud provider configuration file. Empty string for no configuration file.")
fs.StringVar(&s.CloudConfigFile,"cloud-config",s.CloudConfigFile,"The path to the cloud provider configuration file. Empty string for no configuration file.")
fs.IntVar(&s.ConcurrentEndpointSyncs,"concurrent-endpoint-syncs",s.ConcurrentEndpointSyncs,"The number of endpoint syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentEndpointSyncs,"concurrent-endpoint-syncs",s.ConcurrentEndpointSyncs,"The number of endpoint syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentRCSyncs,"concurrent_rc_syncs",s.ConcurrentRCSyncs,"The number of replication controllers that are allowed to sync concurrently. Larger number = more reponsive replica management, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentRCSyncs,"concurrent_rc_syncs",s.ConcurrentRCSyncs,"The number of replication controllers that are allowed to sync concurrently. Larger number = more reponsive replica management, but more CPU (and network) load")
fs.StringVar(&s.MinionRegexp,"minion-regexp",s.MinionRegexp,"If non empty, and --cloud-provider is specified, a regular expression for matching minion VMs.")
fs.MarkDeprecated("minion-regexp","will be removed in a future version")
"The period for syncing nodes from cloudprovider. Longer periods will result in "+
"The period for syncing nodes from cloudprovider. Longer periods will result in "+
"fewer calls to cloud provider, but may delay addition of new nodes to cluster.")
"fewer calls to cloud provider, but may delay addition of new nodes to cluster.")
...
@@ -134,12 +122,6 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -134,12 +122,6 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs.IntVar(&s.DeletingPodsBurst,"deleting-pods-burst",10,"Number of nodes on which pods are bursty deleted in case of node failure. For more details look into RateLimiter.")
fs.IntVar(&s.DeletingPodsBurst,"deleting-pods-burst",10,"Number of nodes on which pods are bursty deleted in case of node failure. For more details look into RateLimiter.")
"The number of retries for initial node registration. Retry interval equals node-sync-period.")
"The number of retries for initial node registration. Retry interval equals node-sync-period.")
fs.Var(&s.MachineList,"machines","List of machines to schedule onto, comma separated.")
fs.MarkDeprecated("machines","will be removed in a future version")
fs.BoolVar(&s.SyncNodeList,"sync-nodes",s.SyncNodeList,"If true, and --cloud-provider is specified, sync nodes from the cloud provider. Default true.")
fs.MarkDeprecated("sync-nodes","will be removed in a future version")
"The period for syncing NodeStatus in NodeController.")
"The period for syncing NodeStatus in NodeController.")
fs.StringVar(&s.ServiceAccountKeyFile,"service-account-private-key-file",s.ServiceAccountKeyFile,"Filename containing a PEM-encoded private RSA key used to sign service account tokens.")
fs.StringVar(&s.ServiceAccountKeyFile,"service-account-private-key-file",s.ServiceAccountKeyFile,"Filename containing a PEM-encoded private RSA key used to sign service account tokens.")
fs.Int64Var(&s.NodeMilliCPU,"node-milli-cpu",s.NodeMilliCPU,"The amount of MilliCPU provisioned on each node")
fs.MarkDeprecated("node-milli-cpu","will be removed in a future version")
fs.Var(resource.NewQuantityFlagValue(&s.NodeMemory),"node-memory","The amount of memory (in bytes) provisioned on each node")
fs.MarkDeprecated("node-memory","will be removed in a future version")
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.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.Var(&s.ClusterCIDR,"cluster-cidr","CIDR Range for Pods in cluster.")
fs.Var(&s.ClusterCIDR,"cluster-cidr","CIDR Range for Pods in cluster.")
@@ -59,24 +59,12 @@ The kube-controller-manager has several options.
...
@@ -59,24 +59,12 @@ The kube-controller-manager has several options.
**--logtostderr**=true
**--logtostderr**=true
log to standard error instead of files
log to standard error instead of files
**--machines**=[]
List of machines to schedule onto, comma separated.
**--master**=""
**--master**=""
The address of the Kubernetes API server (overrides any value in kubeconfig)
The address of the Kubernetes API server (overrides any value in kubeconfig)
**--minion-regexp**=""
If non empty, and --cloud-provider is specified, a regular expression for matching minion VMs.
**--namespace-sync-period**=5m0s
**--namespace-sync-period**=5m0s
The period for syncing namespace life-cycle updates
The period for syncing namespace life-cycle updates
**--node-memory**=3Gi
The amount of memory (in bytes) provisioned on each node
**--node-milli-cpu**=1000
The amount of MilliCPU provisioned on each node
**--node-monitor-grace-period**=40s
**--node-monitor-grace-period**=40s
Amount of time which we allow running Node to be unresponsive before marking it unhealty. Must be N times more than kubelet's nodeStatusUpdateFrequency, where N means number of retries allowed for kubelet to post node status.
Amount of time which we allow running Node to be unresponsive before marking it unhealty. Must be N times more than kubelet's nodeStatusUpdateFrequency, where N means number of retries allowed for kubelet to post node status.
...
@@ -113,9 +101,6 @@ The kube-controller-manager has several options.
...
@@ -113,9 +101,6 @@ The kube-controller-manager has several options.
**--stderrthreshold**=2
**--stderrthreshold**=2
logs at or above this threshold go to stderr
logs at or above this threshold go to stderr
**--sync-nodes**=true
If true, and --cloud-provider is specified, sync nodes from the cloud provider. Default true.
**--v**=0
**--v**=0
log level for V logs
log level for V logs
...
@@ -127,7 +112,7 @@ The kube-controller-manager has several options.
...
@@ -127,7 +112,7 @@ The kube-controller-manager has several options.