Skip to content

[Bug] [k8s operator] Load kubernetes config failed. #4374

@bulolo

Description

@bulolo

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

前置说明:
1、目前 native application运作良好,想验证 operator application是否可行,本次例子可以提交native application,但无法提交operator application
jGFsMM
2、(已确保operator正确安装部署)使用 yaml能正常提交operator application,比如使用 https://github.com/apache/flink-kubernetes-operator/blob/main/examples/basic.yaml, 能正常提交 operator 任务


2025-04-23 21:10:34.758 INFO  org.dinky.gateway.kubernetes.operator.KubernetesApplicationOperatorGateway(92): deploy kubernetes , status is : MISSING
2025-04-23 21:10:34.800 INFO  org.dinky.gateway.kubernetes.operator.KubernetesApplicationOperatorGateway(92): deploy kubernetes , status is : MISSING
2025-04-23 21:10:34.855 INFO  org.dinky.gateway.kubernetes.operator.KubernetesApplicationOperatorGateway(92): deploy kubernetes , status is : MISSING
2025-04-23 21:10:34.856 INFO  org.dinky.gateway.kubernetes.operator.KubernetesApplicationOperatorGateway(96): deploy kubernetes error :{"type":"org.apache.flink.kubernetes.operator.exception.ReconciliationException","message":"org.apache.flink.kubernetes.shaded.io.fabric8.kubernetes.client.KubernetesClientException: Load kubernetes config failed.","additionalMetadata":{},"throwableList":[{"type":"org.apache.flink.kubernetes.shaded.io.fabric8.kubernetes.client.KubernetesClientException","message":"Load kubernetes config failed.","additionalMetadata":{}},{"type":"java.nio.file.NoSuchFileException","message":"/opt/dinky/tmp/kubernetes/f0678209-8606-4055-bab3-ac89e8af83b6/kubernetes.config.file.yaml","additionalMetadata":{}}]}
Process Step SUBMIT_EXECUTE exit with status:FAILED
java.lang.RuntimeException: {"type":"org.apache.flink.kubernetes.operator.exception.ReconciliationException","message":"org.apache.flink.kubernetes.shaded.io.fabric8.kubernetes.client.KubernetesClientException: Load kubernetes config failed.","additionalMetadata":{},"throwableList":[{"type":"org.apache.flink.kubernetes.shaded.io.fabric8.kubernetes.client.KubernetesClientException","message":"Load kubernetes config failed.","additionalMetadata":{}},{"type":"java.nio.file.NoSuchFileException","message":"/opt/dinky/tmp/kubernetes/f0678209-8606-4055-bab3-ac89e8af83b6/kubernetes.config.file.yaml","additionalMetadata":{}}]}
	at org.dinky.gateway.kubernetes.operator.KubernetesApplicationOperatorGateway.lambda$submitJar$0(KubernetesApplicationOperatorGateway.java:97)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.lambda$waitUntilCondition$3(BaseOperation.java:851)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.lambda$informOnCondition$6(BaseOperation.java:881)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation$2.onUpdate(BaseOperation.java:903)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation$2.onUpdate(BaseOperation.java:890)
	at 

uo7fEb

with an error " Load kubernetes config failed" ,when submit a flink operator job
but i can find the file under /opt/dinky/tmp/kubernetes

What you expected to happen

success to submit with operator

How to reproduce

CREATE TABLE Orders (
    order_number BIGINT,
    price        DECIMAL(32,2),
    buyer        ROW<first_name STRING, last_name STRING>,
    order_time   TIMESTAMP(3)
) WITH (
  'connector' = 'datagen',
  'rows-per-second' = '1',
  'number-of-rows' = '50'
);
select order_number,price,first_name,last_name,order_time from Orders 

submit to flink operator cluser

Anything else

hqQQiI
XdQagD
va0K83

Version

1.2.3

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Labels

BugSomething isn't workingInvalidInvalid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions