robot tcs, test charts, robot container added
[ta/cloudtaf.git] / resources / test_charts / cpu-pooling-mix1 / templates / cpupooling-deployment5.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: cpu-pooling-5
5   namespace: default
6 spec:
7   selector:
8     matchLabels:
9       app: cpu-pooling
10   template:
11     metadata:
12       labels:
13         app: cpu-pooling
14       annotations:
15         nokia.k8s.io/cpus: |
16           [{
17             "container": "cpu-pooling1",
18             "processes":
19               [{
20                 "process": "/usr/bin/dumb-init",
21                 "args": ["-c", "sleep", "1000"],
22                 "pool": "exclusive_caas",
23                 "cpus": {{ .Values.proc_req }}
24               }]
25           }]
26     spec:
27       containers:
28       - name: cpu-pooling1
29         image: {{ .Values.registry_url }}:5555/caas/alpine_test:latest
30         imagePullPolicy: IfNotPresent
31         command: ["/usr/bin/dumb-init", "-c", "--"]
32         args: ["sleep", "6000"]
33         resources:
34           requests:
35             nokia.k8s.io/exclusive_caas: {{ .Values.exclusive_pool_req }}
36           limits:
37             nokia.k8s.io/exclusive_caas: {{ .Values.exclusive_pool_req }}
38       - name: cpu-pooling2
39         image: {{ .Values.registry_url }}:5555/caas/alpine_test:latest
40         command: ["/bin/sh", "-c", "--"]
41         args: ["while true; do echo \"Test\"; sleep 1; done;"]
42         resources:
43           requests:
44             nokia.k8s.io/shared_caas: {{ .Values.shared_pool_req }}
45           limits:
46             nokia.k8s.io/shared_caas: {{ .Values.shared_pool_req }}
47       nodeSelector:
48         nodename: {{ .Values.nodename }}