Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-32652

Operator cannot scale standalone deployments in reactive mode

    XMLWordPrintableJSON

Details

    Description

      After we upgraded the Fabric8 Kubernetes Client to 6.7.0 the operator can no longer scale standalone deployments in reactive mode because it uses the "deployments/scale" API instead of patching the deployment since this commit: https://github.com/fabric8io/kubernetes-client/commit/c4d3dd14c6ba7261fe4646636d277cba1c2122a2

      We will get the following error: 

      org.apache.flink.kubernetes.operator.exception.ReconciliationException: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://10.96.0.1:443/apis/apps/v1/namespaces/flink/deployments/basic-reactive-example-taskmanager/scale. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. deployments.apps "basic-reactive-example-taskmanager" is forbidden: User "system:serviceaccount:flink:flink-operator" cannot get resource "deployments/scale" in API group "apps" in the namespace "flink". 

      The fix is easy, we just need to add "deployments/scale" to the ClusterRole we create, I'll create a PR soon

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mateczagany Mate Czagany
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: