Livepatch on-prem enables users to synchronise with the hosted server, and this synchronisation process is configurable.
The primary synchronisation filters are:
- System architecture for limiting patches via architecture.
- Flavours for limiting the kernel flavour.
- Minimum kernel version, only allowing versions greater than the minimum to be sychronised.
Set sync filters if you want to reduce the amount of space consumed by Livepatch files and/or you know your client machines will be limited to a certain set of kernel variants.
A full list of the available sync filters can be found in our config.
2 Likes
I found that in my livepatch deployment, those parameters do not exist. Instead I find:
patch-sync.architectures
patch-sync.flavors
patch-sync.minimum-kernel-version
Maybe I have a different version of livepatch or something?
Hi @maarten256, are you using the Livepatch server snap or charm (and if the charm, from which channel)?
We currently have a few versions of the server charm because of changes to Juju’s charm framework over the years.
- The oldest and stable version of the on-prem charm is available from https://charmhub.io/canonical-livepatch-server in the `latest/stable channel.
- Then we have 2 new versions of the charm that use the latest operator framework. These are the kubernetes charm, and a machine charm which is available at the same link as above but will be found in the
ops1.x/latest
channel when we publish it there (currently only available in ops1.x/edge`).
I mention the above because our config has undergone some change and once we fully publish the new charm some doc pages like this one will need to change. But as you’ve been able to tell, the differences are fairly easy to spot so I hope that gives some context to what you’re seeing.
Hi @kian-parvin,
I’m using the charm, and I am on the stable channel:
canonical-livepatch-server-k8s latest/stable
So that explains it!
It would be helpful if this doc page included the relevant commands for snap deployments as well:
sudo snap set canonical-livepatch-server patch-sync.flavors=generic
sudo snap set canonical-livepatch-server patch-sync.architectures=amd64
sudo snap set canonical-livepatch-server patch-sync.minimum_kernel_version=6.8.0
1 Like
Good idea, I’ve added this. Thanks!
1 Like