robot tcs, test charts, robot container added
[ta/cloudtaf.git] / resources / test_charts / cpu-pooling-mix2 / templates / cpupooling-deployment6.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: cpu-pooling-6
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-pooling",
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                   "process": "/usr/bin/dumb-init",
27                   "args": ["-c", "sleep", "2000"],
28                   "pool": "shared_caas",
29                   "cpus": {{ .Values.shared_pool_ann }}
30               }]
31           }]
32     spec:
33       containers:
34       - name: cpu-pooling
35         image: {{ .Values.registry_url }}:5555/caas/alpine_test:latest
36         imagePullPolicy: IfNotPresent
37         command: ["/usr/bin/dumb-init", "-c", "--"]
38         args: ["sleep", "6000"]
39         resources:
40           requests:
41             nokia.k8s.io/exclusive_caas: {{ .Values.exclusive_pool_req }}
42             nokia.k8s.io/shared_caas: {{ .Values.shared_pool_req }}
43           limits:
44             nokia.k8s.io/exclusive_caas: {{ .Values.exclusive_pool_req }}
45             nokia.k8s.io/shared_caas: {{ .Values.shared_pool_req }}