Hi,

I'm trying to integrate a hpa in a application template with other
resources like ImageStreams, Routes, DeploymentConfigs... These resources
use apiversion v1.

HPA:
        {
          "kind": "HorizontalPodAutoscaler",
          "apiVersion": "extensions/v1beta1",

          "metadata": {
            "name": "${SERVICE}"
          },
          "spec": {
            "scaleRef": {
              "kind": "DeploymentConfig",
              "name": "${SERVICE}",
              "apiVersion": "v1",
              "subresource": "scale"
            },
            "minReplicas": 1,
            "maxReplicas": 3,
            "cpuUtilization": {
              "targetPercentage": 50
            }
          }
        },


When I launch the template this error appears to me:

Cannot create object. Unrecognized kind HorizontalPodAutoscaler


I've tried changing the apiVersion of Template:

    "kind": "Template",
    "apiVersion": "extensions/v1beta1",

But then this error appears:

unable to load "template.json": no kind "Template" is registered for
version "extensions/v1beta1"

And also I've tried changing the API of HPA to v1. It doesn't work.

Is it possible to integrate the hpa with the other resources?

I've tried with the hpa in a separated template and it works perfectly.
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to