Update DSA Test Case yaml with SYS_RAWIO capabilities
Fix yaml. Closes-bug: 2080002 Change-Id: Icb58878a62489c6f939ecdb8e447f9be22a768cc Signed-off-by: Elisamara Aoki Goncalves <elisamaraaoki.goncalves@windriver.com>
This commit is contained in:
parent
65493fb3ee
commit
61d9d93684
@ -119,7 +119,7 @@ The plugin can be tested by deploying a pod using the |VRAN| tools image
|
|||||||
|
|
||||||
#. Create a yaml file for the test pod:
|
#. Create a yaml file for the test pod:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: yaml
|
||||||
|
|
||||||
$ cat << 'EOF' > dsa-accel-config-demo.yml
|
$ cat << 'EOF' > dsa-accel-config-demo.yml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@ -131,19 +131,23 @@ The plugin can be tested by deploying a pod using the |VRAN| tools image
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: dsa-accel-config-demo
|
- name: dsa-accel-config-demo
|
||||||
image: registry.local:9001/docker.io/starlingx/stx-debian-tools-dev:stx.10.0-v1.0.0
|
image: docker.io/starlingx/stx-debian-tools-dev:stx.10.0-v1.0.0
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
workingDir: "/usr/libexec/accel-config/test/"
|
workingDir: "/usr/libexec/accel-config/test/"
|
||||||
command:
|
command:
|
||||||
- "./dsa_user_test_runner.sh"
|
- "./dsa_user_test_runner.sh"
|
||||||
args:
|
args:
|
||||||
- "--skip-config"
|
- "--skip-config"
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
dsa.intel.com/wq-user-shared: 1
|
dsa.intel.com/wq-user-shared: 1
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
["SYS_RAWIO"]
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
imagePullSecrets:
|
|
||||||
- name: default-registry-key
|
EOF
|
||||||
|
|
||||||
#. Apply the yaml file.
|
#. Apply the yaml file.
|
||||||
|
|
||||||
@ -155,7 +159,8 @@ Review the job's log:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
$ kubectl logs dsa-accel-config-demo | tail [ info] Checking Src & Dst buffers
|
$ kubectl logs dsa-accel-config-demo | tail
|
||||||
|
[ info] Checking Src & Dst buffers
|
||||||
[ info] compsts: 1
|
[ info] compsts: 1
|
||||||
[ info] Checking All Tags
|
[ info] Checking All Tags
|
||||||
[ info] All Tags Validated
|
[ info] All Tags Validated
|
||||||
@ -235,7 +240,7 @@ passed by defining the config name with ``dsa-<node-name>.conf``.
|
|||||||
|
|
||||||
The default ``DSA`` device configuration is as follow:
|
The default ``DSA`` device configuration is as follow:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: yaml
|
||||||
|
|
||||||
$ cat << 'EOF' > dsa-override.yml
|
$ cat << 'EOF' > dsa-override.yml
|
||||||
overrideConfig:
|
overrideConfig:
|
||||||
@ -348,13 +353,14 @@ The default ``DSA`` device configuration is as follow:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
The |DSA| device configuration can be customized via application overrides.
|
The |DSA| device configuration can be customized via application overrides.
|
||||||
|
|
||||||
For example, the following config uses dedicated queues for all nodes:
|
For example, the following config uses dedicated queues for all nodes:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: yaml
|
||||||
|
|
||||||
$ cat << 'EOF' > dsa-override.yml
|
$ cat << 'EOF' > dsa-override.yml
|
||||||
overrideConfig:
|
overrideConfig:
|
||||||
@ -467,6 +473,7 @@ For example, the following config uses dedicated queues for all nodes:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
EOF
|
||||||
|
|
||||||
Apply the override file:
|
Apply the override file:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user