X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcloudtaf.git;a=blobdiff_plain;f=resources%2Ftest_charts%2Fcustom-metrics%2Ftemplates%2Fpodinfo-dep.yaml;fp=resources%2Ftest_charts%2Fcustom-metrics%2Ftemplates%2Fpodinfo-dep.yaml;h=48a596650d594fc76d8bc931477a60a87b2f69e1;hp=0000000000000000000000000000000000000000;hb=af5eb3ff36b92ab1d9c156ffa0391eadc73eb6ba;hpb=025a45508d009db84c34076fb4a668f712628d6d 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 index 0000000..48a5966 --- /dev/null +++ b/resources/test_charts/custom-metrics/templates/podinfo-dep.yaml @@ -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"