robot tcs, test charts, robot container added
[ta/cloudtaf.git] / resources / test_charts / custom-metrics / templates / podinfo-dep.yaml
diff --git a/resources/test_charts/custom-metrics/templates/podinfo-dep.yaml b/resources/test_charts/custom-metrics/templates/podinfo-dep.yaml
new file mode 100644 (file)
index 0000000..48a5966
--- /dev/null
@@ -0,0 +1,48 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: podinfo
+  namespace: kube-system
+spec:
+  selector:
+    matchLabels:
+      app: podinfo
+      k8s-app: podinfo
+  replicas: 2
+  template:
+    metadata:
+      labels:
+        app: podinfo
+        k8s-app: podinfo
+      annotations:
+        prometheus.io/scrape: 'true'
+    spec:
+      containers:
+      - name: podinfod
+        image: {{ .Values.registry_url }}:5555/caas/podinfo:latest
+        imagePullPolicy: Always
+        ports:
+        - containerPort: 9898
+          protocol: TCP
+        readinessProbe:
+          httpGet:
+            path: /readyz
+            port: 9898
+          initialDelaySeconds: 1
+          periodSeconds: 2
+          failureThreshold: 1
+        livenessProbe:
+          httpGet:
+            path: /healthz
+            port: 9898
+          initialDelaySeconds: 1
+          periodSeconds: 3
+          failureThreshold: 2
+        resources:
+          requests:
+            memory: "32Mi"
+            cpu: "1m"
+          limits:
+            memory: "256Mi"
+            cpu: "100m"