Flink 1.13.2 HA with K8s

10/1/2021

By following Kubernetes HA Services I added the setup in my setting, but when i try to deploy Flink job, the error msg is :

Caused by: io.fabric8.kubernetes.client.KubernetesClientException: configmaps "flink-app-cluster-my-application-restserver-leader" is forbidden: User "system:serviceaccount:streaming:flink-svc-acc-my-application" cannot watch resource "configmaps" in API group "" in the namespace "default"

After searching for a while, here is probably the answer to the issue:

  1. Setup kuberntes.namespace to the one you are using, in my case: streaming
  2. Make sure the service account has access right to configMap in that namespace, if not, use Role and RoleBinding to create one, in my case flink-svc-acc-my-application has access right.
-- user2289345
apache-flink
high-availability
kubernetes

0 Answers