Ansible playbook added
[eliot.git] / blueprints / iotgateway / playbooks / roles / cadvisor / files / dep.yaml
1 # Copyright 2020 Huawei Technologies Co., Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15
16 # cadvisor pod
17 ---
18 apiVersion: v1
19 kind: Pod
20 metadata:
21   name: cadvisor
22   namespace: default
23   labels:
24     app: cadvisor
25   annotations:
26     seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
27 spec:
28   containers:
29     - image: unibaktr/cadvisor:v0.36.0
30       imagePullPolicy: Always
31       name: cadvisor-pod
32       ports:
33         - containerPort: 8080
34           hostPort: 8081
35           protocol: TCP
36       resources:
37         requests:
38           memory: 200Mi
39           cpu: 150m
40         limits:
41           memory: 2000Mi
42           cpu: 300m
43       volumeMounts:
44         - mountPath: /rootfs
45           name: rootfs
46           readOnly: true
47       # yamllint disable-line rule:key-duplicates
48       volumeMounts:
49         - mountPath: /var/run
50           name: varrun
51           readOnly: true
52       # yamllint disable-line rule:key-duplicates
53       volumeMounts:
54         - mountPath: /sys
55           name: sys
56           readOnly: true
57       # yamllint disable-line rule:key-duplicates
58       volumeMounts:
59         - mountPath: /var/lib/docker
60           name: varlibdocker
61           readOnly: true
62       # yamllint disable-line rule:key-duplicates
63       volumeMounts:
64         - mountPath: /dev/disk
65           name: devdisk
66           readOnly: true
67   terminationGracePeriodSeconds: 30
68   volumes:
69     - name: rootfs
70       hostPath:
71         path: /
72   # yamllint disable-line rule:key-duplicates
73   volumes:
74     - name: varrun
75       hostPath:
76         path: /var/run
77   # yamllint disable-line rule:key-duplicates
78   volumes:
79     - name: sys
80       hostPath:
81         path: /sys
82   # yamllint disable-line rule:key-duplicates
83   volumes:
84     - name: varlibdocker
85       hostPath:
86         path: /var/lib/docker
87   # yamllint disable-line rule:key-duplicates
88   volumes:
89     - name: devdisk
90       hostPath:
91         path: /dev/disk