Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ServerSideApply instead of Replace for Kyverno #11

Open
morey-tech opened this issue Feb 7, 2023 · 0 comments
Open

Use ServerSideApply instead of Replace for Kyverno #11

morey-tech opened this issue Feb 7, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@morey-tech
Copy link

I am guessing that one of the Kyverno CRDs was too big to fit into kubectl.kubernetes.io/last-applied-configuration annotation that is added by kubectl apply, causing the Application sync to fail, leading to the use of Replace: true. This sync option has the potential to be destructive and might lead to resources having to be recreated, which could cause an outage.

There's support for ServerSideApply now, which addresses the original issue and removes the potentially destructive syncs. Try using this instead:

apiVersion: argoproj.io/v1alpha1
kind: Application
spec:
  ...
  syncPolicy:
    syncOptions:
    - ServerSideApply=true
@diabhey diabhey added bug Something isn't working enhancement New feature or request labels Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants