dinky icon indicating copy to clipboard operation
dinky copied to clipboard

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

Open bulolo opened this issue 8 months ago • 3 comments

Search before asking

  • [x] 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

bulolo avatar Apr 23 '25 13:04 bulolo

Hello @bulolo, this issue is about K8S, so I assign it to @gaoyan1998 and @zackyoungh. If you have any questions, you can comment and reply.

你好 @bulolo, 这个 issue 是关于 K8S 的,所以我把它分配给了 @gaoyan1998 和 @zackyoungh。如有任何问题,可以评论回复。

github-actions[bot] avatar Apr 23 '25 13:04 github-actions[bot]

https://github.com/DataLinkDC/dinky/pull/4234

发现一个相同的问题

bulolo avatar May 07 '25 13:05 bulolo

Hello @, this issue has not been active for more than 30 days. This issue will be closed in 7 days if there is no response. If you have any questions, you can comment and reply.

你好 @, 这个 issue 30 天内没有活跃,7 天后将关闭,如需回复,可以评论回复。

github-actions[bot] avatar Jul 01 '25 00:07 github-actions[bot]