-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcyperf-agent-client.yaml
52 lines (51 loc) · 1.94 KB
/
cyperf-agent-client.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
48
49
50
51
52
apiVersion: apps/v1
kind: Deployment
metadata:
name: cyperf-agent-client-deployment
spec:
replicas: 1
selector:
matchLabels:
app: cyperf-agent
template:
metadata:
labels:
app: cyperf-agent
spec:
containers:
- name: cyperf-agent-client
image: public.ecr.aws/keysight/cyperf-agent:latest
env:
- name: AGENT_CONTROLLER
value: "10.36.66.111"
# name: AGENT_MANAGEMENT_INTERFACE
# value: "eth0"
# name: AGENT_TEST_INTERFACE
# value: "eth1"
- name: AGENT_TAGS
value: "K8s-Group=CyPerf-Agent-Client,node-owner=User"
securityContext:
privileged: false
capabilities:
add: ["NET_ADMIN", "IPC_LOCK", "NET_RAW"]
resources:
limits:
memory: "4Gi"
#cpu: "3.5"
## skipping requests means limits=requests
## with 3.5 for 8 core node it should be able to run 2 replicas
## but experiments needed to see how other pods react for perf configs.
requests:
memory: "2Gi"
nodeSelector:
agenttype: client
#affinity:
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchExpressions:
# - key: app
# operator: In
# values:
# - cyperf-agent
# topologyKey: "kubernetes.io/hostname"