Coder Social home page Coder Social logo

Comments (8)

cgruver avatar cgruver commented on July 17, 2024 1

from okd4-upi-lab-setup.

cgruver avatar cgruver commented on July 17, 2024 1

Yeah, I fixed that image pruner in my docs a couple days ago. I got bad syntax from an old version of the documentation.

4.6 probably won't be working for a while. It is a new branch being developed. OCP 4.5 will be GA soon. OKD 4 GA will be based on 4.5.

from okd4-upi-lab-setup.

cgruver avatar cgruver commented on July 17, 2024

This should fix the issue. You will have to build from a 4.5 nightly. Beta 6 will not have this fix.

openshift/machine-config-operator#1889

from okd4-upi-lab-setup.

disposab1e avatar disposab1e commented on July 17, 2024

Cool! Thx!

Works with:
4.5.0-0.okd-2020-07-02-203357
stable/32.20200615.3.0

Just change in image pruner from:
"*/0 * * * *"
to
"0 0 * * *"
than error disappears.

Tested with Rook: 1.3.7 ... just copy and paste new manifests and apply your changes.

4.6.0-0.okd-2020-07-01-233221
still not working

from okd4-upi-lab-setup.

ashaver avatar ashaver commented on July 17, 2024

Where exactly (or how) do I change the image pruner?

from okd4-upi-lab-setup.

cgruver avatar cgruver commented on July 17, 2024

This is the link to the OCP 4.4 docs, should be the same for 4.5:

https://docs.openshift.com/container-platform/4.4/registry/configuring-registry-operator.html

It is a custom resource. The one created by default is named cluster

You can patch it with a schedule like this: (Runs every day at midnight.)

oc patch imagepruners.imageregistry.operator.openshift.io/cluster --type merge -p '{"spec":{"schedule":"0 0 * * *","suspend":false,"keepTagRevisions":3,"keepYoungerThan":60,"resources":{},"affinity":{},"nodeSelector":{},"tolerations":[],"startingDeadlineSeconds":60,"successfulJobsHistoryLimit":3,"failedJobsHistoryLimit":3}}'

Or use cron syntax to set your own schedule.

from okd4-upi-lab-setup.

disposab1e avatar disposab1e commented on July 17, 2024

This is exactly what I did!

from okd4-upi-lab-setup.

cgruver avatar cgruver commented on July 17, 2024

Closing this.

from okd4-upi-lab-setup.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.