kind: HorizontalPodAutoscaler
apiVersion: autoscaling/v1
metadata:
    name: gitlab-registry
    namespace: gitlab
    selfLink: >-
        /apis/autoscaling/v1/namespaces/gitlab/horizontalpodautoscalers/gitlab-registry
    uid: 998a3b00-398b-11ea-b115-42010a8001d6
    resourceVersion: '274568332'
    creationTimestamp: '2020-01-18T00:43:52Z'
    labels:
        app: registry
        chart: registry-0.3.0
        heritage: Helm
        release: gitlab
    annotations:
        autoscaling.alpha.kubernetes.io/conditions: >-
            [{"type":"AbleToScale","status":"True","lastTransitionTime":"2020-01-18T00:44:08Z","reason":"ReadyForNewScale","message":"recommended
            size matches current
            size"},{"type":"ScalingActive","status":"True","lastTransitionTime":"2021-08-01T11:47:29Z","reason":"ValidMetricFound","message":"the
            HPA was able to successfully calculate a replica count from cpu
            resource utilization (percentage of
            request)"},{"type":"ScalingLimited","status":"False","lastTransitionTime":"2021-06-17T05:05:41Z","reason":"DesiredWithinRange","message":"the
            desired count is within the acceptable range"}]
        autoscaling.alpha.kubernetes.io/current-metrics: >-
            [{"type":"Resource","resource":{"name":"cpu","currentAverageUtilization":2,"currentAverageValue":"1m"}}]
        kubectl.kubernetes.io/last-applied-configuration: >
            {"apiVersion":"autoscaling/v1","kind":"HorizontalPodAutoscaler","metadata":{"annotations":{"autoscaling.alpha.kubernetes.io/conditions":"[{\"type\":\"AbleToScale\",\"status\":\"True\",\"lastTransitionTime\":\"2020-01-18T00:44:08Z\",\"reason\":\"ReadyForNewScale\",\"message\":\"recommended
            size matches current
            size\"},{\"type\":\"ScalingActive\",\"status\":\"True\",\"lastTransitionTime\":\"2020-01-30T07:05:49Z\",\"reason\":\"ValidMetricFound\",\"message\":\"the
            HPA was able to successfully calculate a replica count from cpu
            resource utilization (percentage of
            request)\"},{\"type\":\"ScalingLimited\",\"status\":\"True\",\"lastTransitionTime\":\"2020-01-30T07:20:11Z\",\"reason\":\"TooFewReplicas\",\"message\":\"the
            desired replica count is increasing faster than the maximum scale
            rate\"}]","autoscaling.alpha.kubernetes.io/current-metrics":"[{\"type\":\"Resource\",\"resource\":{\"name\":\"cpu\",\"currentAverageUtilization\":2,\"currentAverageValue\":\"1m\"}}]"},"creationTimestamp":"2020-01-18T00:43:52Z","labels":{"app":"registry","chart":"registry-0.3.0","heritage":"Helm","release":"gitlab"},"name":"gitlab-registry","namespace":"gitlab","selfLink":"/apis/autoscaling/v1/namespaces/gitlab/horizontalpodautoscalers/gitlab-registry","uid":"998a3b00-398b-11ea-b115-42010a8001d6"},"spec":{"maxReplicas":4,"minReplicas":1,"scaleTargetRef":{"apiVersion":"apps/v1","kind":"Deployment","name":"gitlab-registry"},"targetCPUUtilizationPercentage":75},"status":{"currentCPUUtilizationPercentage":2,"currentReplicas":2,"desiredReplicas":2}}
spec:
    scaleTargetRef:
        kind: Deployment
        name: gitlab-registry
        apiVersion: apps/v1
    minReplicas: 1
    maxReplicas: 4
    targetCPUUtilizationPercentage: 75
status:
    lastScaleTime: '2020-05-20T15:37:03Z'
    currentReplicas: 1
    desiredReplicas: 1
    currentCPUUtilizationPercentage: 2

