Do you have installed the operator along with CRD[1]? [1]. https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.0/docs/try-flink-kubernetes-operator/quick-start/#deploying-the-operator
Best, Yang yu'an huang <h.yuan...@gmail.com> 于2022年6月23日周四 13:04写道: > Hi, > > It seems that you can't find the FlinkDeployment. I saw the api server > address is maskedip. Can you confirm whether it is the correct api server > address? > > Best, > Yuan > > On Thu, 23 Jun 2022 at 11:52 AM, Kishore Pola <kishore.p...@hotmail.com> > wrote: > >> Hello flink user group, >> >> When I am trying to create a flink deployment with the operator >> programmatically, kubernetes cluster is returning HTTP 404 message. Any >> pointers/help? >> I am constructing the context using fabric8 client like this >> >> >> Config config = >> new ConfigBuilder() >> .withMasterUrl(masterUrl) >> .withTrustCerts(true) >> .withDisableHostnameVerification(true) >> .build(); >> >> this.client = new DefaultKubernetesClient(config); >> this.flinkCrdContext = new ResourceDefinitionContext >> .Builder() >> .withGroup("flink.apache.org") >> .withVersion(OPERATOR_API_VERSION) >> .withPlural("flinkdeployments") >> .withNamespaced(true) >> .withKind("FlinkDeployment") >> .build(); >> >> >> >> io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: >> POST at: >> https://maskedip/apis/flink.apache.org/v1beta1/namespaces/default/flinkdeployments. >> Message: Not Found. >> >