apiserver: Remove the deprecated --target-ram-mb flag
				
					
				
			Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
This commit is contained in:
		| @@ -132,10 +132,6 @@ function start-kube-apiserver { | ||||
|       params=$(append-param-if-not-present "${params}" "max-requests-inflight" 1500) | ||||
|       params=$(append-param-if-not-present "${params}" "max-mutating-requests-inflight" 500) | ||||
|     fi | ||||
|     # Set amount of memory available for apiserver based on number of nodes. | ||||
|     # TODO: Once we start setting proper requests and limits for apiserver | ||||
|     # we should reuse the same logic here instead of current heuristic. | ||||
|     params=$(append-param-if-not-present "${params}" "target-ram-mb" $((NUM_NODES * 60))) | ||||
|   fi | ||||
|   if [[ -n "${SERVICE_CLUSTER_IP_RANGE:-}" ]]; then | ||||
|     params+=" --service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}" | ||||
|   | ||||
| @@ -202,11 +202,6 @@ func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) { | ||||
| 		"List of directives for HSTS, comma separated. If this list is empty, then HSTS directives will not "+ | ||||
| 		"be added. Example: 'max-age=31536000,includeSubDomains,preload'") | ||||
|  | ||||
| 	deprecatedTargetRAMMB := 0 | ||||
| 	fs.IntVar(&deprecatedTargetRAMMB, "target-ram-mb", deprecatedTargetRAMMB, | ||||
| 		"DEPRECATED: Memory limit for apiserver in MB (used to configure sizes of caches, etc.)") | ||||
| 	fs.MarkDeprecated("target-ram-mb", "This flag will be removed in v1.23") | ||||
|  | ||||
| 	fs.StringVar(&s.ExternalHost, "external-hostname", s.ExternalHost, | ||||
| 		"The hostname to use when generating externalized URLs for this master (e.g. Swagger API Docs or OpenID Discovery).") | ||||
|  | ||||
|   | ||||
| @@ -546,7 +546,6 @@ function compute-kube-apiserver-params { | ||||
| 	params+=" --client-ca-file=/etc/srv/kubernetes/ca.crt" | ||||
| 	params+=" --token-auth-file=/etc/srv/kubernetes/known_tokens.csv" | ||||
| 	params+=" --secure-port=443" | ||||
| 	params+=" --target-ram-mb=$((NUM_NODES * 60))" | ||||
| 	params+=" --service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}" | ||||
| 	params+=" --admission-control=${CUSTOM_ADMISSION_PLUGINS}" | ||||
| 	params+=" --authorization-mode=Node,RBAC" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ialidzhikov
					ialidzhikov