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.

ImagePullPolicy should be configurable for every container

See original GitHub issue

Is your enhancement related to a problem? Please describe.

When deploying Che some images pull policies can be set easily (i.e. for che-server) but others are not and it’s imagePullPolicy: Always no matter what.

That makes it impossible to start Che or even a workspace when offline. Even if all the images are all available on the local disk.

Describe the solution you’d like

JWT proxy image pull policy should be configurable (in che.properties, helm chart and operator)

With the Helm chart it should be possible (but it’s currently not) to:

With the Operator it should be possible (but it’s currently not) to:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
davidwindellcommented, Apr 28, 2020

Awesome, thanks @tolusha - this works and workspace startup time is so much faster with IfNotPresent now, ~10 seconds

1reaction
davidfestalcommented, Sep 30, 2019

Let me provide information about the status of this on the Operator side:

With the Operator it should be possible (but it’s currently not) to:

* Configure operator pull policy

This one is a bit special, since its overriding depends on the method of the Che operator installation:

  • from OperatorHub: In the OLM CSVs, pull policy is set to IfNotPresent for stable channel (releases), and to Always for the nightly channel.
  • from chectl: By default the Always pull policy is used since by default chectl installs the nightly operator. But I assume we could create an issue to allow overriding it in the chectl CLI
  • from any deploy.sh script: again, the pull policy could easily be overridden when applying the operator deployment
* Configure che-server pull policy
* Configure plugin registry pull policy
* Configure devfile registry pull policy
* Configure postgres pull policy
* Configure keycloak pull policy

Already available as fields in the custom resource.

* Configure plugin broker pull policy
* Configure sidecars pull policy

This is already possible by setting the appropriate Che server environment variable:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images
Kubernetes supports specifying container image registry keys on a Pod. imagePullSecrets must all be in the same namespace as the Pod. The referenced...
Read more >
Kubernetes Image Pull Policy: A Definitive Guide
This article explores how Kubernetes images are managed and pulled, and the various applications of different image pull policies. Container Registry. A ...
Read more >
Kubernetes DevOps Tip #5: Why Setting imagePullPolicy ...
When the imagePullPolicy is set to Always, users can ensure the latest version of the image is deployed every time a Kubernetes pod...
Read more >
Kubernetes Image Pull Polices per Environment
That container image could be a Docker image or another tool, like Podman. ... What is a Kubernetes Image Pull Policy?
Read more >
Ensure image pull policy is set to Always - Documentation
Fix - Buildtime. Kubernetes. Resource: Container Argument: imagePullPolicy (Optional) Defines for the kubelet when he should ...
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