Change cgroup version from v1 to v2 for kubernetes workload clusters deployed via TCA
search cancel

Change cgroup version from v1 to v2 for kubernetes workload clusters deployed via TCA

book

Article ID: 368246

calendar_today

Updated On:

Products

VMware Telco Cloud Automation VMware Telco Cloud Platform

Issue/Introduction

  • 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

  1. 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

  1. Before CNF, instantiating the above Network Function, check cgroup version on the K8S Cluster:
    # stat -fc %T /sys/fs/cgroup/
    tmpfs
  2. 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