Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-5964

Configuring the number of replicas for operand deployments using HorizontalPodAutoscaler (HPA)

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • Hide
      = Configuring the number of replicas for operand deployments using HorizontalPodAutoscaler (HPA)

      Starting from this release, you can configure the number of replicas for operands using link:https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/[HorizontalPodAutoscaler] (HPA):

      [code, source]
      ----
      apiVersion: autoscaling/v2
      kind: HorizontalPodAutoscaler
      metadata:
        name: scaler
        namespace: {operator-namespace}
      spec:
        scaleTargetRef:
          apiVersion: apps/v1
          kind: Deployment
          name: __<deployment_name>__
        ...
      ----
      The `__<deployment_name>__` in the snippet above corresponds to one of the following deployments:
      * `che-server`
      * `che-gateway`
      * `dashboard`
      * `plugin-registry`
      * `devfile-registry`

      Find more details about the HPA setup in the link:https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.12/html/administration_guide/configuring-devspaces#configuring-number-of-replicas-configuring-number-of-replicas[official documentation].
      Show
      = Configuring the number of replicas for operand deployments using HorizontalPodAutoscaler (HPA) Starting from this release, you can configure the number of replicas for operands using link: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ [HorizontalPodAutoscaler] (HPA): [code, source] ---- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata:   name: scaler   namespace: {operator-namespace} spec:   scaleTargetRef:     apiVersion: apps/v1     kind: Deployment     name: __<deployment_name>__   ... ---- The `__<deployment_name>__` in the snippet above corresponds to one of the following deployments: * `che-server` * `che-gateway` * `dashboard` * `plugin-registry` * `devfile-registry` Find more details about the HPA setup in the link: https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.12/html/administration_guide/configuring-devspaces#configuring-number-of-replicas-configuring-number-of-replicas [official documentation].
    • Enhancement
    • Done

          jvrbkova@redhat.com Jana Vrbkova
          jvrbkova@redhat.com Jana Vrbkova
          Maksym Musienko Maksym Musienko
          Jana Vrbkova Jana Vrbkova
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: