You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Rajat Ahuja <ah...@gmail.com> on 2023/07/21 08:04:38 UTC

How to define imagePullSecrets with k8s operator to fetch image using FlinkDeploymentSpec

Hi Flink Experts,

When I need to fetch a customer Docker image (built on top of Flink 1.17 to
add connectors or SQL code) from our organization's private registry using *K8s
operator, it fails with the error. Although image is present on repo, and
able to pull on my local machine after pushing to artifactory. *

*Warning  Failed     45s (x4 over 2m11s)  kubelet            Failed to pull
image
"artifactory.us.bank-dns.com:5000/runner/flink-sql-runner-example:latest
<http://artifactory.us.bank-dns.com:5000/runner/flink-sql-runner-example:latest>":
rpc error: code = Unknown desc = Error response from daemon: manifest for
artifactory.us.bank-dns.com:5000/runner/flink-sql-runner-example:latest
<http://artifactory.us.bank-dns.com:5000/runner/flink-sql-runner-example:latest>
not found: manifest unknown: The named manifest is not known to the
registry."*


If i use normal deployment, and pull image i use it with imagePullSecrets
but i was not able to find the similar placeholder to define in Flink
deployment kubernetes operator. Any help how to get pass this issue ?

Thanks

Re: How to define imagePullSecrets with k8s operator to fetch image using FlinkDeploymentSpec

Posted by Gyula Fóra <gy...@gmail.com>.
Hi!
We don't have imagePullSecrets as part of the FlinkDeplyomentSpec at the
moment, however you can simply use the following built in Flink
configuration:

https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/deployment/config/#kubernetes-container-image-pull-secrets
kubernetes.container.image.pull-secrets: secrets

Cheers,
Gyula

On Fri, Jul 21, 2023 at 10:05 AM Rajat Ahuja <ah...@gmail.com>
wrote:

> Hi Flink Experts,
>
> When I need to fetch a customer Docker image (built on top of Flink 1.17
> to add connectors or SQL code) from our organization's private registry
> using *K8s operator, it fails with the error. Although image is present
> on repo, and able to pull on my local machine after pushing to
> artifactory. *
>
> *Warning  Failed     45s (x4 over 2m11s)  kubelet            Failed to
> pull image
> "artifactory.us.bank-dns.com:5000/runner/flink-sql-runner-example:latest
> <http://artifactory.us.bank-dns.com:5000/runner/flink-sql-runner-example:latest>":
> rpc error: code = Unknown desc = Error response from daemon: manifest for
> artifactory.us.bank-dns.com:5000/runner/flink-sql-runner-example:latest
> <http://artifactory.us.bank-dns.com:5000/runner/flink-sql-runner-example:latest>
> not found: manifest unknown: The named manifest is not known to the
> registry."*
>
>
> If i use normal deployment, and pull image i use it with imagePullSecrets
> but i was not able to find the similar placeholder to define in Flink
> deployment kubernetes operator. Any help how to get pass this issue ?
>
> Thanks
>
>
>