Hello, I am trying Flink-Kubernetes-Operator on AKS cluster and met an error when submitting an example job
https://github.com/apache/flink-kubernetes-operator/blob/main/examples/basic.yaml.
Could you help on this?
The error message from operator:
2023-03-15 04
2025,969 o.a.f.c.d.a.c.ApplicationClusterDeployer [INFO ] [magnetar.basic-example] Submitting application in 'Application Mode'.
2023-03-15 04
2026,010 o.a.f.k.u.KubernetesUtils [INFO ] [magnetar.basic-example] Kubernetes deployment requires a fixed port. Configuration blob.server.port will be set to 6124
2023-03-15 04
2026,010 o.a.f.k.u.KubernetesUtils [INFO ] [magnetar.basic-example] Kubernetes deployment requires a fixed port. Configuration taskmanager.rpc.port will be set to 6122
2023-03-15 04
2026,011 o.a.f.c.Configuration [INFO ] [magnetar.basic-example] Config uses fallback configuration key 'kubernetes.service-account' instead of key 'kubernetes.jobmanager.service-account'
2023-03-15 04
2026,030 o.a.f.k.KubernetesClusterDescriptor [WARN ] [magnetar.basic-example] Failed to create the Kubernetes cluster "basic-example", try to clean up the residual resources.
2023-03-15 04
2026,048 o.a.f.k.o.l.AuditUtils [INFO ] [magnetar.basic-example] >>> Event | Warning | CLUSTERDEPLOYMENTEXCEPTION | Could not create Kubernetes cluster "basic-example".
2023-03-15 04
2026,048 o.a.f.k.o.r.ReconciliationUtils [WARN ] [magnetar.basic-example] Attempt count: 0, last attempt: false
2023-03-15 04
2026,084 o.a.f.k.o.l.AuditUtils [INFO ] [magnetar.basic-example] >>> Status | Error | UPGRADING | {"type":"org.apache.flink.kubernetes.operator.exception.ReconciliationException","message":"org.apache.flink.client.deployment.ClusterDeploymentException: Could not create Kubernetes cluster \"basic-example\".","throwableList":[{"type":"org.apache.flink.client.deployment.ClusterDeploymentException","message":"Could not create Kubernetes cluster \"basic-example\"."},{"type":"
org.apache.flink.kubernetes.shaded.io.fabric8.kubernetes.client.KubernetesClientException","message":"Failure executing: POST at:
https://10.0.0.1/apis/apps/v1/namespaces/magnetar/deployments. Message: Internal error occurred: failed calling webhook \"
deploymentwebhook.microsoft.com\": failed to call webhook: yaml: mapping values are not allowed in this context. Received status: Status(apiVersion=v1, code=500, details=StatusDetails(causes=[StatusCause(field=null, message=failed calling webhook \"
deploymentwebhook.microsoft.com\": failed to call webhook: yaml: mapping values are not allowed in this context, reason=null, additionalProperties={})], group=null, kind=null, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Internal error occurred: failed calling webhook \"
deploymentwebhook.microsoft.com\": failed to call webhook: yaml: mapping values are not allowed in this context, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=InternalError, status=Failure, additionalProperties={})."}]}
2023-03-15 04
2026,084 i.j.o.p.e.ReconciliationDispatcher [ERROR] [magnetar.basic-example] Error during event processing ExecutionScope{ resource id: ResourceID{name='basic-example', namespace='magnetar'}, version: 124702780} failed.
org.apache.flink.kubernetes.operator.exception.ReconciliationException: org.apache.flink.client.deployment.ClusterDeploymentException: Could not create Kubernetes cluster "basic-example".
at org.apache.flink.kubernetes.operator.controller.FlinkDeploymentController.reconcile(FlinkDeploymentController.java:142)