- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 97 for CurrentReplicas (0.26 sec)
-
pkg/controller/podautoscaler/horizontal.go
a.storeScaleEvent(hpa.Spec.Behavior, key, currentReplicas, desiredReplicas) logger.Info("Successfully rescaled", "HPA", klog.KObj(hpa), "currentReplicas", currentReplicas, "desiredReplicas", desiredReplicas, "reason", rescaleReason) if desiredReplicas > currentReplicas { actionLabel = monitor.ActionLabelScaleUp } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator_test.go
fakeClient := &fake.Clientset{} fakeClient.AddReactor("list", "pods", func(action core.Action) (handled bool, ret runtime.Object, err error) { obj := &v1.PodList{} podsCount := int(tc.currentReplicas) // Failed pods are not included in tc.currentReplicas if tc.podPhase != nil && len(tc.podPhase) > podsCount { podsCount = len(tc.podPhase) } for i := 0; i < podsCount; i++ { podReadiness := v1.ConditionTrue
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 68.4K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator.go
return currentReplicas, usage, nil } newReplicas := int32(math.Ceil(newUsageRatio * float64(len(metrics)))) if (newUsageRatio < 1.0 && newReplicas > currentReplicas) || (newUsageRatio > 1.0 && newReplicas < currentReplicas) { // return the current replicas if the change of metrics length would cause a change in scale direction return currentReplicas, usage, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
conversionTestCases := []struct { currentReplicas int32 expectedDesiredReplicas int32 hpaMinReplicas int32 hpaMaxReplicas int32 expectedConvertedDesiredReplicas int32 expectedCondition string annotation string }{ { currentReplicas: 5,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.30.0/autoscaling.v1.HorizontalPodAutoscaler.yaml
minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue targetCPUUtilizationPercentage: 4 status: currentCPUUtilizationPercentage: 5 currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:52:25 UTC 2024 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.30.0/autoscaling.v1.HorizontalPodAutoscaler.json
}, "minReplicas": 2, "maxReplicas": 3, "targetCPUUtilizationPercentage": 4 }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentCPUUtilizationPercentage": 5 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:52:25 UTC 2024 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.29.0/autoscaling.v1.HorizontalPodAutoscaler.yaml
minReplicas: 2 scaleTargetRef: apiVersion: apiVersionValue kind: kindValue name: nameValue targetCPUUtilizationPercentage: 4 status: currentCPUUtilizationPercentage: 5 currentReplicas: 3 desiredReplicas: 4 lastScaleTime: "2002-01-01T01:01:01Z"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 04:12:07 UTC 2023 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.29.0/autoscaling.v1.HorizontalPodAutoscaler.json
}, "minReplicas": 2, "maxReplicas": 3, "targetCPUUtilizationPercentage": 4 }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentCPUUtilizationPercentage": 5 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 04:12:07 UTC 2023 - 1.5K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_control.go
if statusErr == nil { logger.V(4).Info("Updated status", "statefulSet", klog.KObj(set), "replicas", currentStatus.Replicas, "readyReplicas", currentStatus.ReadyReplicas, "currentReplicas", currentStatus.CurrentReplicas, "updatedReplicas", currentStatus.UpdatedReplicas) } switch { case err != nil && statusErr != nil: logger.Error(statusErr, "Could not update status", "statefulSet", klog.KObj(set))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:03:46 UTC 2024 - 30.9K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.30.0/autoscaling.v2beta1.HorizontalPodAutoscaler.json
"targetValue": "0", "targetAverageValue": "0" } } ] }, "status": { "observedGeneration": 1, "lastScaleTime": "2002-01-01T01:01:01Z", "currentReplicas": 3, "desiredReplicas": 4, "currentMetrics": [ { "type": "typeValue", "object": { "target": { "kind": "kindValue", "name": "nameValue",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:52:25 UTC 2024 - 5.7K bytes - Viewed (0)