Skip to content

HPA failed status - unknow FlinkApplication / not found #247

@jmorcar

Description

@jmorcar

I've created FlinkApplication cluster. After I've create a HPA with scaleTargetRef.. but hpa describe never find the new object FlinkApplication cluster "flinkoperator":

Cluster Green ok:

NAME                       PHASE     CLUSTER HEALTH   JOB HEALTH   JOB RESTARTS   AGE
flinkoperator   Running   Green            Green                       34m
Conditions:
  Type         Status  Reason          Message
  ----         ------  ------          -------
  AbleToScale  False   FailedGetScale  the HPA controller was unable to get the target's current scale: flinkapplications.flink.k8s.io "flinkoperator" not found
Events:
  Type     Reason          Age   From                       Message
  ----     ------          ----  ----                       -------
  Warning  FailedGetScale  8s    horizontal-pod-autoscaler  flinkapplications.flink.k8s.io "flinkoperator" not found
NAME                           REFERENCE                                   TARGETS                            MINPODS   MAXPODS   REPLICAS   AGE
flinkoperator-hpa   FlinkApplication/flinkoperator   <unknown>/14100Mi, <unknown>/95%   9         12        0          11m

Flink version: 1.9.2
AKS version:

% kubectl version             
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:48:33Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"10428892c761e8ca8908e71146eea4751feb545b", GitTreeState:"clean", BuildDate:"2021-11-15T08:35:11Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions