Files
test/resources/cloud_platform/nightly_regression/isolated_cpu_tools.yaml
croy 82d417b9e6 New StarlingX Automation Framework
Fresh start for the StarlingX automation framework.

Change-Id: Ie265e0791024f45f71faad6315c2b91b022934d1
2024-11-29 16:01:57 -05:00

35 lines
822 B
YAML

# To use this yaml file, you must have the following variables defined:
# - pod_name: The name of the pod
# - number_of_isolcpus: The number of isolated CPUs.
apiVersion: v1
kind: Pod
metadata:
name: "{{ pod_name }}"
spec:
containers:
- args:
- sleep 60m
command:
- /bin/sh
- -c
image: registry.local:9001/pv-test
imagePullPolicy: IfNotPresent
name: "{{ pod_name }}"
resources:
limits:
memory: 2Gi
windriver.com/isolcpus: "{{ number_of_isolcpus }}"
requests:
memory: 1Gi
windriver.com/isolcpus: "{{ number_of_isolcpus }}"
securityContext:
capabilities:
add:
- IPC_LOCK
- NET_ADMIN
- NET_RAW
imagePullSecrets:
- name: local-secret
nodeSelector:
kubernetes.io/hostname: "{{ host_name }}"