robot tcs, test charts, robot container added
[ta/cloudtaf.git] / resources / test_charts / cpu-pooling-annotation2 / templates / cpupooling-deployment10.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: cpu-pooling-10
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             "processes":
18               [{
19                 "process": "/usr/bin/dumb-init",
20                 "args": ["-c", "sleep", "1000"],
21                 "pool": "exclusive_caas",
22                 "cpus": {{ .Values.proc_req }}
23               }]
24           }]
25     spec:
26       containers:
27       - name: cpu-pooling
28         image: {{ .Values.registry_url }}:5555/caas/alpine_test:latest
29         imagePullPolicy: IfNotPresent
30         command: ["/usr/bin/dumb-init", "-c", "--"]
31         args: ["sleep", "6000"]
32         resources:
33           requests:
34             nokia.k8s.io/exclusive_caas: {{ .Values.pool_req }}
35           limits:
36             nokia.k8s.io/exclusive_caas: {{ .Values.pool_req }}