-
Notifications
You must be signed in to change notification settings - Fork 24
/
pod_oslat.yaml
47 lines (47 loc) · 1.17 KB
/
pod_oslat.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: v1
kind: Pod
metadata:
name: oslat
annotations:
cpu-load-balancing.crio.io: "disable"
irq-load-balancing.crio.io: "disable"
cpu-quota.crio.io: "disable"
spec:
# Map to the correct performance class in the cluster (from PAO)
# Identify class names with "oc get runtimeclass"
runtimeClassName: performance-openshift-node-performance-profile
restartPolicy: Never
containers:
- name: oslat
image: quay.io/container-perf-tools/oslat
imagePullPolicy: Always
# Request and Limits must be identical for the Pod to be assigned to the QoS Guarantee
resources:
requests:
memory: "200Mi"
cpu: "4"
limits:
memory: "200Mi"
cpu: "4"
env:
- name: tool
value: "oslat"
- name: PRIO
value: "1"
- name: delay
value: "0"
- name: RUNTIME_SECONDS
value: "30"
- name: TRACE_THRESHOLD
value: ""
- name: EXTRA_ARGS
value: ""
securityContext:
# TRACE_THRESHOLD requires privileged=true
#privileged: true
capabilities:
add:
- SYS_NICE
- IPC_LOCK
nodeSelector:
node-role.kubernetes.io/worker: ""