You can modify the node components and CaaS components in TOSCA for different Kubernetes VIMs.
To support various network functions, the Worker nodes may require a customization in the TOSCA. These customizations include the kernel-related changes, custom packages installations, network adapter, SRIOV, DPDK configurations, and CPU Pinning of the Worker nodes on which you deploy the network functions.
Node Components
- Kernel: The Kernel definition uses multiple arguments that require a customization.
kernel_type
: Kernel type for the worker nodes. The kernel types are:- Linux RealTime (linux-rt)
- Linux Non-RealTime (linux)
TDNF repo[VMware Photon Linux]
during customization.kernel typeinfra_requirements: node_components: kernel: kernel_type: name: linux-rt version: 4.19.132-1.ph3
kernel_args
: Kernel boot parameters for tuning values that you can adjust when the system is running. These parameters configure the behavior of the kernel such as isolating CPUs. These parameters are free form strings. They are defined as 'key' → name of the parameter and optionally 'value' → if any arguments are provided.kernel_argsinfra_requirements: node_components: kernel: kernel_args: - key: nosoftlockup - key: noswap - key: softlockup_panic value: 0 - key: pcie_aspm.policy value: performance - key: intel_idle.max_cstate value: 1 - key: mce value: ignore_ce - key: fsck.mode value: force
Huge Pagesinfra_requirements: node_components: kernel: kernel_args: - key: default_hugepagesz value: 1G - key: hugepagesz value: 1G - key: hugepages value: 17 Note: i. This order should be maintained. ii. Nodes will be restarted to set these values iii. supported hugepagesz are 2M | 1G
isolcpusinfra_requirements: node_components: kernel: kernel_args: - key: isolcpus value: 2-{{tca.node.vmNumCPUs}} Note: TCA will replace the {{tca.node.vmNumCPUs}} with vCPUs configured on the worker node.
kernel_modules
: To install any kernel modules on Worker nodes. For example,dpdk
,sctp
, andvrf
.Note: When configuringdpdk
, ensure that the correspondingpciutils
package is specified undercustom_packages
.dpdkinfra_requirements: node_components: kernel: kernel_modules: - name: dpdk version: 19.11.1
For a details on supported DPDK versions, see Supported DPDK and Kernel Versions.
custom_packages
: Custom packages include thelxcfs
,tuned
,pci-utils
, andptp
. The required packages are downloaded fromTDNF repo[VMware Photon Linux]
during customization.custom_packagesinfra_requirements: node_components: custom_packages: - name: pciutils version: 3.6.2-1.ph3 - name: tuned version: 2.13.0-3.ph3 - name: linuxptp version: 2.0-1.ph3 Note: Make sure these packages are available on VMWARE TDNF Repository
additional_config
: Helps in the additional customization on node. For example,tuned
.Note: While configuringtuned
, ensure that the corresponding tuned package is specified undercustom_packages
tunedinfra_requirements: node_components: additional_config: - name: tuned # <--- for setting tuned value: '[{"name":"custom-profile"}]' # <--- list of profile names to activate.
file_injection
: Inject the configuration files inside the nodes.file_injectioninfra_requirements: node_components: file_injection: - source: file content: ../Artifacts/scripts/custom-tuned-profile.conf #<-- File path location which is embedded in CSAR path: /etc/tuned/custom-profile/tuned.conf #<-- Target location of the configuration file. Location should align with name of the profile. - source: file content: ../Artifacts/scripts/cpu-partitioning-variables.conf #<-- File path location which is embedded in CSAR path: /etc/tuned/cpu-partitioning-variables.conf #<-- Supporting files for the main configuration file.
isNumaConfigNeeded
: This feature tries to find a host and a NUMA node that can fit the VM with the given requirements and assign it. It is useful for high-performance profile Network Functions such asDU
, which require a high throughput. This sets CPU and Memory reservations to maximum on the Worker node. It sets the affinity for the Worker nodecpus
to the ESXicpus
.isNumaConfigNeededinfra_requirements: node_components: isNumaConfigNeeded: [true | false]
latency_sensitivity
: For Network Functions that require a high-performance profile with low-latency such asDU
,CU-CP
,CU-UP
, andUPF
. These functions require the node latency sensitivity set on vSphere.Note: Node restarts after customization.latency_sensitivityinfra_requirements: node_components: latency_sensitivity: [high | low]
ptp
: It is used for customizing PTP services. You can use the configuration files for ptp4l and phc2sys services customization.Note:- You must add
PTP4L_CONFIG_FILE
in User Input section of the catalog. - Destination path (worker node path) is abstracted out from these services. VMware Telco Cloud Automation copies content of phc2sys and ptp4l configuration files to /etc/sysconfig/phc2sys and /etc/ptp4l.conf respectively on the worker node.
PTPinfra_requirements: node_components: ptp: phc2sys: source: file # <-- Content will come from file embedded in CSAR content: ../Artifacts/scripts/phc2sys # <-- Source path location relative to Definitions folder ptp4l: source: input # <-- Content will come from user input while NF instantiation content: PTP4L_CONFIG_FILE # <-- Variable name to hold user input file content while NF instantiation
- You must add
passthrough_devices
: For adding PCI devices. For example,ptp
.Note: While specifying passthrough device configurations, ensure that the correspondinglinuxptp
package is specified undercustom_packages
.passthrough_devicesinfra_requirements: node_components: passthrough_devices: - device_type: NIC pf_group: ptp isSharedAcrossNuma: [true|false] # <-- This sets the passthrough device to be sharable across NUMAs. If not present, defaults to falseumber of adapters required Note: 1. For now the values are hardcoded 2. If 'isSharedAcrossNuma' is set to true, make sure to set 'infra_requirements.node_components.isNumaConfigNeeded' to true.
network
: Creates network adapters on the nodes. For SRIOV, the given resource name will be allocatable resource on the node.Networkinfra_requirements: node_components: network: devices: - deviceType: # <-- Network Adapter type [sriov] networkName: # <-- Input label for User Input to provide Network while NF Instantiation. Refer below section how to define these input resourceName: # <-- This is the label the device will be exposed in K8s node. dpdkBinding: # <-- The driver this device should used. If not mentioned, then default OS driver will be used. count: 3 # <- Number of adapters required. interfaceName: # <- Sets the interface name inside GUEST OS for this adapter. Valid only if the dpdkBinding is not "vfio-pci" and "igb_uio" isSharedAcrossNuma: [true|false] # <-- This sets the network device to be sharable across NUMAs. If not present, defaults to false additionalProperties: mtu: # <-- Optional Input label for user input to provide Network MTU while NF Instantiation. Refer below section how to define these input Note: 1. for 'networkName' refer below section 2. dpdkBinding - igb_uio - vfio-pci 3. Make sure to have 'pciutils' custom packages and 'dpdk' kernel modules. 4. If 'isSharedAcrossNuma' is set to true, make sure to set 'infra_requirements.node_components.isNumaConfigNeeded' to true. 5. MTU is not allowed if dpdk driver is set on the interface. TCA would throw validation error during NF catalog onboarding 6. If MTU value is not provided during NF instantiation, default value 1500 would be set on the interface
For SRIOV network adapters, when initiating, add the following:VnfAdditionalConfigurablePropertiestosca.datatypes.nfv.VnfcAdditionalConfigurableProperties.lmn: derived_from: tosca.datatypes.nfv.VnfcAdditionalConfigurableProperties properties: F1U: # <--- label that is provided infra_requirements.node_components.network.devices.networkName required: true propertyName: F1U # <--- label that is provided infra_requirements.node_components.network.devices.networkName description: '' default: '' type: string format: network # <- to show the network drop down PTP4L_CONFIG_FILE: # <-- label that is provided in infra_requirements.node_components.ptp.ptp4l.content required: true propertyName: PTP4L_CONFIG_FILE # <-- label that is provided in infra_requirements.node_components.ptp.ptp4l.content description: '' default: '' type: string format: file # <-- to show drop down to select file helm-abc: type: tosca.nodes.nfv.Vdu.Compute.Helm.helm-abc properties: : configurable_properties: additional_vnfc_configurable_properties: type: tosca.datatypes.nfv.VnfcAdditionalConfigurableProperties.lmn : : F1U: '' # <-- Same label provided above PTP4L_CONFIG_FILE: '' # <-- Same label provided above
Services
: Defines the systemd service configurations. You can definestalld
andsyslog-ng
service.stalldinfra_requirements: node_components: services: - name: stalld #<------ Only stalld, syslog-ng are supported
Note:- Ensure that you specify the stalld custom package in
custom_packages
. - Use the file injection method to to upload the modified configuration file for stalld service in
/etc/sysconfig/stalld
.
syslog-nginfra_requirements: node_components: services: - name: syslog-ng serviceConfigFiles: - name: /etc/syslog-ng/conf.d/serv.conf #<------ Config file of syslog-ng by Systemd Service so that NodeConfig will monitor this file ans restart syslog-ng when its content changed
Note: Use the file injection method to to upload the required service configuration files for syslog-ng service and provide the path of the uploaded files inserviceConfigFiles
.- Ensure that you specify the stalld custom package in
caas_components
You can configure CaaS components, such as
CNI
,
CSI
,
Helm
for the Kubernetes. You can install
CNI
plugins on Worker nodes during CNF instantiation. Provide CNIs such as
SRINOV
in Cluster Configuration in the CaaS Infrastructure.
infra_requirements: caas_components: - name: srinov type: cni
AWS Elastic Kubernetes Service
Node customizations and workflows are not supported for AWS Elastic Kubernetes Service (EKS).