Scalable Services · Example Payload

Scalable Services Kubernetes Hpa Example

API GatewayCloud NativeContainersDistributed SystemsHigh AvailabilityKubernetesLoad BalancingMicroservicesScalable ArchitectureServerlessService Mesh

Scalable Services Kubernetes Hpa Example is an example object payload from Scalable Services, with 1 top-level field. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

example

Example Payload

Raw ↑
{
  "example": {
    "title": "Kubernetes Horizontal Pod Autoscaler",
    "description": "Example Kubernetes HPA configuration for a scalable microservice.",
    "type": "kubernetes",
    "apiVersion": "autoscaling/v2",
    "kind": "HorizontalPodAutoscaler",
    "metadata": {
      "name": "payment-service-hpa",
      "namespace": "production"
    },
    "spec": {
      "scaleTargetRef": {
        "apiVersion": "apps/v1",
        "kind": "Deployment",
        "name": "payment-service"
      },
      "minReplicas": 2,
      "maxReplicas": 20,
      "metrics": [
        {
          "type": "Resource",
          "resource": {
            "name": "cpu",
            "target": {
              "type": "Utilization",
              "averageUtilization": 70
            }
          }
        },
        {
          "type": "Resource",
          "resource": {
            "name": "memory",
            "target": {
              "type": "Utilization",
              "averageUtilization": 80
            }
          }
        }
      ]
    }
  }
}