Coder Social home page Coder Social logo

Upgrade procedure needed about website HOT 12 CLOSED

kyverno avatar kyverno commented on July 30, 2024
Upgrade procedure needed

from website.

Comments (12)

chipzoller avatar chipzoller commented on July 30, 2024 1

Yeah, it's a good point. So I'll be sure to document the upgrade process using Helm to both "development" releases and also "production" releases. Otherwise with straight YAML, it's just a re-apply the latest manifest. If you can think of anything else that may be special, please let me know. I'll write up what we've got so far if not.

from website.

chipzoller avatar chipzoller commented on July 30, 2024

Input needed, please. I'll self-assign once it's ready to document.

from website.

realshuting avatar realshuting commented on July 30, 2024

Yes, the upgrade of Kyverno is fairly simple, it just needs to apply the latest manifest from this file: https://github.com/kyverno/kyverno/blob/main/definitions/release/install.yaml

from website.

chipzoller avatar chipzoller commented on July 30, 2024

I think there needs to be some guidance on how to remove the older CRDs so there isn't an alias collision with the new ones. Here's what happens when that doesn't happen and you just repave Kyverno with a newer manifest.

$ k api-resources | egrep report
clusterreportchangerequests                          kyverno.io                     false        ClusterReportChangeRequest
reportchangerequests                                 kyverno.io                     true         ReportChangeRequest
clusterpolicyreports              cpolr              policy.k8s.io                  true         ClusterPolicyReport
policyreports                     polr               policy.k8s.io                  true         PolicyReport
clusterpolicyreports              cpolr              wgpolicyk8s.io                 false        ClusterPolicyReport
policyreports                     polr               wgpolicyk8s.io                 true         PolicyReport

from website.

realshuting avatar realshuting commented on July 30, 2024

Ok, I see. I think you installed an early release candidate of 1.3.0 and later upgraded to the latest version. For now you can just remove clusterpolicyreports and policyreports in policy.k8s.io.

I would suggest cleaning up older CRDs by Kyverno automatically rather than adding more steps when upgrading Kyverno.

Will submit a PR to fix it.

from website.

chipzoller avatar chipzoller commented on July 30, 2024

Yeah, I have been using each RC for 1.3.0 as they've been cut, but I wasn't sure when the new CRDs came in. Agree it'd be better for Kyverno to clean them up.

So is the official best practice for upgrading to just apply the new manifest or use Helm as usual? No special procedures or considerations?

from website.

realshuting avatar realshuting commented on July 30, 2024

With kubectl, all it needs is to run kubectl apply -f https://github.com/kyverno/kyverno/blob/main/definitions/release/install.yaml.

With Helm, I think it first needs to upgrade Charts, and then upgrade Kyverno application? I'm now so sure, will have to check the exact command.

from website.

chipzoller avatar chipzoller commented on July 30, 2024

If the new chart is published, users would have to helm repo update to pull in the new definitions and then do a helm upgrade specifying that new version. Or were you saying there's more than that?

from website.

realshuting avatar realshuting commented on July 30, 2024

It'd be all when upgrading to an official release. When dealing with a release candidate, seems like Helm "hides" release candidates by default.

For example, only if I do helm search repo --devel kyverno, it shows the release candidate, otherwise, it just displays the latest official one. See Install via Helm on this page. When installing / upgrade, it needs a specific version by --version.

from website.

chipzoller avatar chipzoller commented on July 30, 2024

Yes, I'm familiar with the release vs RC/dev ones. Just asking if it's a "normal" upgrade process with Helm. Mainly asking because users will want to make sure nothing is going to happen to their policies or reports.

from website.

realshuting avatar realshuting commented on July 30, 2024

I was not aware of that until I tested RC install, so just wanted to bring that up.

For the normal upgrade, what you've described would be all:

users would have to helm repo update to pull in the new definitions and then do a helm upgrade specifying that new version.

from website.

chipzoller avatar chipzoller commented on July 30, 2024

Closing via 9684ca3

from website.

Related Issues (20)

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.