How to Change cgroup version from v1 to v2 for K8S Workload Clusters deployed via VMware Telco Cloud Automation
search cancel

How to Change cgroup version from v1 to v2 for K8S Workload Clusters deployed via VMware Telco Cloud Automation

book

Article ID: 368246

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

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:

Environment

VMware Telco Cloud Automation 3.1.0, 3.1.1

Resolution

Change cgroup via DIP

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:

 

Validation

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