diff --git a/nodeup/pkg/model/kube_apiserver.go b/nodeup/pkg/model/kube_apiserver.go index 09e6ef7114..b8853499a0 100644 --- a/nodeup/pkg/model/kube_apiserver.go +++ b/nodeup/pkg/model/kube_apiserver.go @@ -416,7 +416,7 @@ func (b *KubeAPIServerBuilder) buildPod() (*v1.Pod, error) { }, Resources: v1.ResourceRequirements{ Requests: v1.ResourceList{ - v1.ResourceCPU: resource.MustParse("150m"), + v1.ResourceCPU: resource.MustParse(b.Cluster.Spec.KubeAPIServer.CPURequest), }, }, } diff --git a/pkg/apis/kops/componentconfig.go b/pkg/apis/kops/componentconfig.go index 510eb0b530..e187dc0b08 100644 --- a/pkg/apis/kops/componentconfig.go +++ b/pkg/apis/kops/componentconfig.go @@ -411,6 +411,8 @@ type KubeAPIServerConfig struct { // The specified file can contain multiple keys, and the flag can be specified multiple times with different files. // If unspecified, --tls-private-key-file is used. ServiceAccountKeyFile []string `json:"serviceAccountKeyFile,omitempty" flag:"service-account-key-file"` + // CPURequest, cpu request compute resource for kube proxy e.g. "20m" + CPURequest string `json:"cpuRequest,omitempty"` } // KubeControllerManagerConfig is the configuration for the controller