kind: HorizontalPodAutoscaler
apiVersion: autoscaling/v1
metadata:
    name: gitlab-unicorn
    namespace: gitlab
    selfLink: >-
        /apis/autoscaling/v1/namespaces/gitlab/horizontalpodautoscalers/gitlab-unicorn
    uid: 998b0a32-398b-11ea-b115-42010a8001d6
    resourceVersion: '275530945'
    creationTimestamp: '2020-01-18T00:43:52Z'
    labels:
        app: unicorn
        chart: unicorn-2.6.5
        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:42:16Z","reason":"ValidMetricFound","message":"the
            HPA was able to successfully calculate a replica count from cpu
            resource"},{"type":"ScalingLimited","status":"True","lastTransitionTime":"2021-07-30T21:49:12Z","reason":"TooFewReplicas","message":"the
            desired replica count is less than the minimum replica count"}]
        autoscaling.alpha.kubernetes.io/current-metrics: >-
            [{"type":"Resource","resource":{"name":"cpu","currentAverageValue":"4m"}}]
        autoscaling.alpha.kubernetes.io/metrics: >-
            [{"type":"Resource","resource":{"name":"cpu","targetAverageValue":"1"}}]
        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\":\"ScaleDownStabilized\",\"message\":\"recent
            recommendations were higher than current one, applying the highest
            recent
            recommendation\"},{\"type\":\"ScalingActive\",\"status\":\"True\",\"lastTransitionTime\":\"2020-02-02T23:56:47Z\",\"reason\":\"ValidMetricFound\",\"message\":\"the
            HPA was able to successfully calculate a replica count from cpu
            resource\"},{\"type\":\"ScalingLimited\",\"status\":\"False\",\"lastTransitionTime\":\"2020-02-04T00:51:27Z\",\"reason\":\"DesiredWithinRange\",\"message\":\"the
            desired count is within the acceptable
            range\"}]","autoscaling.alpha.kubernetes.io/current-metrics":"[{\"type\":\"Resource\",\"resource\":{\"name\":\"cpu\",\"currentAverageValue\":\"4m\"}}]","autoscaling.alpha.kubernetes.io/metrics":"[{\"type\":\"Resource\",\"resource\":{\"name\":\"cpu\",\"targetAverageValue\":\"1\"}}]"},"creationTimestamp":"2020-01-18T00:43:52Z","labels":{"app":"unicorn","chart":"unicorn-2.6.5","heritage":"Helm","release":"gitlab"},"name":"gitlab-unicorn","namespace":"gitlab","selfLink":"/apis/autoscaling/v1/namespaces/gitlab/horizontalpodautoscalers/gitlab-unicorn","uid":"998b0a32-398b-11ea-b115-42010a8001d6"},"spec":{"maxReplicas":3,"minReplicas":2,"scaleTargetRef":{"apiVersion":"apps/v1","kind":"Deployment","name":"gitlab-unicorn"}},"status":{"currentReplicas":2,"desiredReplicas":2,"lastScaleTime":"2020-02-03T00:26:40Z"}}
spec:
    scaleTargetRef:
        kind: Deployment
        name: gitlab-unicorn
        apiVersion: apps/v1
    minReplicas: 2
    maxReplicas: 3
status:
    lastScaleTime: '2020-05-20T08:34:49Z'
    currentReplicas: 2
    desiredReplicas: 2

