mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Enable HorizontalPodAutoscalerUseRESTClients option
This commit is contained in:
parent
5bad51f616
commit
f3fddaedd0
@ -1602,6 +1602,10 @@ function start-kube-controller-manager {
|
|||||||
if [[ -n "${CLUSTER_SIGNING_DURATION:-}" ]]; then
|
if [[ -n "${CLUSTER_SIGNING_DURATION:-}" ]]; then
|
||||||
params+=" --experimental-cluster-signing-duration=$CLUSTER_SIGNING_DURATION"
|
params+=" --experimental-cluster-signing-duration=$CLUSTER_SIGNING_DURATION"
|
||||||
fi
|
fi
|
||||||
|
# disable using HPA metrics REST clients if metrics-server isn't enabled
|
||||||
|
if [[ "${ENABLE_METRICS_SERVER:-}" != "true" ]]; then
|
||||||
|
params+=" --horizontal-pod-autoscaler-use-rest-clients=false"
|
||||||
|
fi
|
||||||
|
|
||||||
local -r kube_rc_docker_tag=$(cat /home/kubernetes/kube-docker-files/kube-controller-manager.docker_tag)
|
local -r kube_rc_docker_tag=$(cat /home/kubernetes/kube-docker-files/kube-controller-manager.docker_tag)
|
||||||
local container_env=""
|
local container_env=""
|
||||||
|
@ -115,7 +115,7 @@ func NewCMServer() *CMServer {
|
|||||||
ClusterSigningDuration: metav1.Duration{Duration: helpers.OneYear},
|
ClusterSigningDuration: metav1.Duration{Duration: helpers.OneYear},
|
||||||
ReconcilerSyncLoopPeriod: metav1.Duration{Duration: 60 * time.Second},
|
ReconcilerSyncLoopPeriod: metav1.Duration{Duration: 60 * time.Second},
|
||||||
EnableTaintManager: true,
|
EnableTaintManager: true,
|
||||||
HorizontalPodAutoscalerUseRESTClients: false,
|
HorizontalPodAutoscalerUseRESTClients: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
s.LeaderElection.LeaderElect = true
|
s.LeaderElection.LeaderElect = true
|
||||||
|
@ -192,15 +192,16 @@ func TestAddFlags(t *testing.T) {
|
|||||||
{Group: "apiregistration.k8s.io", Resource: "apiservices"},
|
{Group: "apiregistration.k8s.io", Resource: "apiservices"},
|
||||||
{Group: "apiextensions.k8s.io", Resource: "customresourcedefinitions"},
|
{Group: "apiextensions.k8s.io", Resource: "customresourcedefinitions"},
|
||||||
},
|
},
|
||||||
NodeEvictionRate: 0.2,
|
NodeEvictionRate: 0.2,
|
||||||
SecondaryNodeEvictionRate: 0.05,
|
SecondaryNodeEvictionRate: 0.05,
|
||||||
LargeClusterSizeThreshold: 100,
|
LargeClusterSizeThreshold: 100,
|
||||||
UnhealthyZoneThreshold: 0.6,
|
UnhealthyZoneThreshold: 0.6,
|
||||||
DisableAttachDetachReconcilerSync: true,
|
DisableAttachDetachReconcilerSync: true,
|
||||||
ReconcilerSyncLoopPeriod: metav1.Duration{Duration: 30 * time.Second},
|
ReconcilerSyncLoopPeriod: metav1.Duration{Duration: 30 * time.Second},
|
||||||
Controllers: []string{"foo", "bar"},
|
Controllers: []string{"foo", "bar"},
|
||||||
EnableTaintManager: false,
|
EnableTaintManager: false,
|
||||||
UseServiceAccountCredentials: true,
|
HorizontalPodAutoscalerUseRESTClients: true,
|
||||||
|
UseServiceAccountCredentials: true,
|
||||||
},
|
},
|
||||||
Kubeconfig: "/kubeconfig",
|
Kubeconfig: "/kubeconfig",
|
||||||
Master: "192.168.4.20",
|
Master: "192.168.4.20",
|
||||||
|
Loading…
Reference in New Issue
Block a user