question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to change k8s imagePullPolicy

See original GitHub issue

Is your feature request related to a problem? Please describe. With cloudflow 2.0.22 it is not possible to configure the imagePullPolicy for images when deploying to k8s. This makes it difficult/impossible to use some options for pushing/pulling images with minikube, see https://minikube.sigs.k8s.io/docs/handbook/pushing/ Most of the mentioned options requires a imagePullPolicy which is different from Always (which is what cloudflow uses per default)

Is your feature request related to a specific runtime of cloudflow or applicable for all runtimes? Applicable to all runtimes. As its a k8s deployment limitation.

Describe the solution you’d like I dont have a good solution in mind right now. All I can think of is extending the existing k8s configuration settings by adding the imagePullPolicy as another possible setting. eg:

cloudflow.streamlets.valid-logger.kubernetes.pods.pod.containers.container.imagePullPolicy = "Never"

Describe alternatives you’ve considered The only two alternatives I can think of are:

  1. Using a dedicated image registry with minikube. Which is more effort than the handy minikube cache I typically use.
  2. Updating/patching the streamlet k8s Deployment and changing the imagePullPolicyafter it was deployed. Quite an ugly solution.

Additional context None

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
leozillacommented, Jan 26, 2021

@andreaTP yeah sure I can add something to the docs

0reactions
andreaTPcommented, Jan 26, 2021

Thanks a lot for wrapping it up all together @leozilla ! Yes that’s more or less how I got it working on microk8s as well. We might want to improve the experience in the future, but, as of today, this is it, if you want/can add a section with those steps to the docs it will be great 🙂 .

A quick note on:

kubectl config set-context --current --namespace="" # this is necessary to work around a current bug in 2.0.22

This is fixed and new binaries are published, just re-download the CLI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images - Kubernetes
Set the imagePullPolicy of the container to Always . Omit the imagePullPolicy and use :latest as the tag for the image to use;...
Read more >
Kubernetes Image Pull Policy: A Definitive Guide - ContainIQ
If imagePullPolicy is set to Always, Kubernetes will always pull the image from the Repository. With IfNotPresent, Kubernetes will only pull the image...
Read more >
Updating Kubernetes Images and Setting imagePullPolicy
To update Kubernetes images and set its imagePullPolicy, make sure that you have any Linux distribution. In our illustration, we are using Ubuntu...
Read more >
Kubernetes How to: Ensure imagePullPolicy set to Always
Ensure imagePullPolicy set to Always using Fairwinds Insights, a Kubernetes configuration validation platform.
Read more >
How do I force Kubernetes to re-pull an image? - Stack Overflow
Temporarily change imagePullPolicy , do a kubectl apply , restart the ... combined with a imagePullPolicy: Always policy will allow you to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found