Skip to content

Commit

Permalink
Add support for vRouter profile (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeaty-cisco authored and GitHub Enterprise committed Jul 31, 2024
1 parent 9acd3cf commit 61eb61e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/xrd-vrouter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions charts/xrd-vrouter/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
8 changes: 8 additions & 0 deletions charts/xrd-vrouter/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions charts/xrd-vrouter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 61eb61e

Please sign in to comment.