mirror of https://github.com/kubernetes/kops.git
Add Ability to set cpu request for api server
This commit is contained in:
parent
2bf0103995
commit
a75dcdda35
|
|
@ -416,7 +416,7 @@ func (b *KubeAPIServerBuilder) buildPod() (*v1.Pod, error) {
|
||||||
},
|
},
|
||||||
Resources: v1.ResourceRequirements{
|
Resources: v1.ResourceRequirements{
|
||||||
Requests: v1.ResourceList{
|
Requests: v1.ResourceList{
|
||||||
v1.ResourceCPU: resource.MustParse("150m"),
|
v1.ResourceCPU: resource.MustParse(b.Cluster.Spec.KubeAPIServer.CPURequest),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.
|
// 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.
|
// If unspecified, --tls-private-key-file is used.
|
||||||
ServiceAccountKeyFile []string `json:"serviceAccountKeyFile,omitempty" flag:"service-account-key-file"`
|
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
|
// KubeControllerManagerConfig is the configuration for the controller
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue