diff --git a/charts/xrd-vrouter/Chart.yaml b/charts/xrd-vrouter/Chart.yaml index 1828bf1..a9e8985 100644 --- a/charts/xrd-vrouter/Chart.yaml +++ b/charts/xrd-vrouter/Chart.yaml @@ -8,7 +8,7 @@ keywords: - xrd sources: - https://github.com/ios-xr/xrd-helm -version: 2.0.0-beta.0 +version: 2.0.0-beta.1 dependencies: - name: xrd-common version: 1.1.0-beta.2 diff --git a/charts/xrd-vrouter/templates/statefulset.yaml b/charts/xrd-vrouter/templates/statefulset.yaml index 2efef7e..ee4a95d 100644 --- a/charts/xrd-vrouter/templates/statefulset.yaml +++ b/charts/xrd-vrouter/templates/statefulset.yaml @@ -53,6 +53,11 @@ Construct the resources including the default if that resource wasn't specified. {{- $hugepageMb := include "xrd.toMiB" $hugepageSize }} {{- $_ := set $env "XR_VROUTER_DP_HUGEPAGE_MB" $hugepageMb }} +{{- /* Generate PROFILE env var */}} +{{- if .Values.profile }} + {{- $_ := set $env "XR_VROUTER_PROFILE" .Values.profile }} +{{- end }} + {{- /* Generate CPU env vars */}} {{- if .Values.cpu }} {{- with .Values.cpu}} diff --git a/charts/xrd-vrouter/values.schema.json b/charts/xrd-vrouter/values.schema.json index febe14c..8fed692 100644 --- a/charts/xrd-vrouter/values.schema.json +++ b/charts/xrd-vrouter/values.schema.json @@ -338,6 +338,14 @@ "additionalProperties": false } }, + "profile": { + "description": "XRd vRouter profile", + "type": "string", + "enum": [ + "vpe", + "vrr" + ] + }, "runtimeClassName": { "description": "Runtime Class name for the XRd pod", "type": "string" diff --git a/charts/xrd-vrouter/values.yaml b/charts/xrd-vrouter/values.yaml index 7c1a854..f9f38cf 100644 --- a/charts/xrd-vrouter/values.yaml +++ b/charts/xrd-vrouter/values.yaml @@ -256,6 +256,14 @@ mgmtInterfaces: [] # Refer to https://kubernetes.io/docs/concepts/containers/runtime-class/. #runtimeClassName: "performance-cisco-ios-xr" +# vRouter profile. Valid options: +# - "vpe": for cloud router use cases +# - "vrr": for virtual route reflector use cases. +# The choice of profile determines the way in which XRd uses available CPU +# cores, so that the usage is suitable for the specified use case. If no option +# is given, XRd uses the "vpe" profile. +#profile: "vpe" + # CPU settings. cpu: {} # Specify the cpusets for XRd to use for the control-plane and the dataplane.