Switch cgroup version from v1 to v2 for K8s workload clusters
Environment
TCA: 3.1.0, 3.1.1
TCP: 4.0, 4.0.1
Cause
The default cgroup has set to v1 within the BYOI Templates.
Resolution
Change cgroup via DIP
Upgrade cgroup from v1 to v2 in photon 5 by appending the following kernel arguments in the CNF CSAR as part of the DIP requirements:
Key
Value
Description
systemd.unified_cgroup_hierarchy
1
Enable cgroup v2
systemd.legacy_systemd_cgroup_controller
0
Disable cgroup v1
Example:
Validate cgroup change
Before CNF, instantiating the above Network Function, check cgroup version on the K8S Cluster: # stat -fc %T /sys/fs/cgroup/ tmpfs
Once the instantiation of the Network Function is successful, verify that the cgroup version is upgraded within the K8S Cluster: # stat -fc %T /sys/fs/cgroup/ cgroup2fs