robot tcs, test charts, robot container added
[ta/cloudtaf.git] / resources / test_charts / custom-metrics / templates / podinfo-dep.yaml
1 ---
2 apiVersion: apps/v1
3 kind: Deployment
4 metadata:
5   name: podinfo
6   namespace: kube-system
7 spec:
8   selector:
9     matchLabels:
10       app: podinfo
11       k8s-app: podinfo
12   replicas: 2
13   template:
14     metadata:
15       labels:
16         app: podinfo
17         k8s-app: podinfo
18       annotations:
19         prometheus.io/scrape: 'true'
20     spec:
21       containers:
22       - name: podinfod
23         image: {{ .Values.registry_url }}:5555/caas/podinfo:latest
24         imagePullPolicy: Always
25         ports:
26         - containerPort: 9898
27           protocol: TCP
28         readinessProbe:
29           httpGet:
30             path: /readyz
31             port: 9898
32           initialDelaySeconds: 1
33           periodSeconds: 2
34           failureThreshold: 1
35         livenessProbe:
36           httpGet:
37             path: /healthz
38             port: 9898
39           initialDelaySeconds: 1
40           periodSeconds: 3
41           failureThreshold: 2
42         resources:
43           requests:
44             memory: "32Mi"
45             cpu: "1m"
46           limits:
47             memory: "256Mi"
48             cpu: "100m"