kubernetes_horizontal_pod_autoscaler

    0

    0

    lucycodes42

    Terraform snippets

    Create a Horizontal Pod Autoscaler with an ID of "kubernetes_horizontal_pod_autoscaler_id". The Horizontal Pod Autoscaler will ensure that there are at least 8 replicas of MyApp running on machines in the cluster. The Horizontal Pod Autoscaler will use the "Scale Target Reference" named "MyApp" to determine how many replicas torun.

    Shortcut: tf_kubernetes_horizontal_pod_autoscaler

    resource "kubernetes_horizontal_pod_autoscaler" "kubernetes_horizontal_pod_autoscaler_id" {
       metadata {
           name = "my-metadata-name"
       }
       spec {
           max_replicas = "10"
           min_replicas = "8"
           scale_target_ref {
               kind = "ReplicationController"
               name = "MyApp"
           }
       }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.