In TCA 3.1.0, the default cgroup has set to v1 within the BYOI Templates. If you want to switch to v2, please follow the steps below:
VMware Telco Cloud Automation 3.1.0, 3.1.1
To upgrade cgroup from v1 to v2 in photon 5, append 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:
Before CNF, instantiating the above Network Function, check cgroup version on the K8S Cluster:
root@worker-v1-28-np1-gkqck-mf8ww-t8gf2 [ ~ ]# 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:
root@worker-v1-28-np1-gkqck-mf8ww-t8gf2 [ ~ ]# stat -fc %T /sys/fs/cgroup/
cgroup2fs