Refactor Distributed Analytics project structure
[demo.git] / vnfs / DAaaS / deploy / collection / charts / cadvisor / templates / daemonset.yaml
1 {{/*
2 # Copyright 2019 Intel Corporation, Inc
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 */}}
16
17 apiVersion: apps/v1beta2
18 kind: DaemonSet
19 metadata:
20   name: {{ template "fullname" . }} 
21   labels:
22     app: {{ template "name" . }}
23     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24     release: {{ .Release.Name }}
25 spec:
26   replicas: {{ .Values.replicaCount }}
27   updateStrategy:
28     type: RollingUpdate
29   selector:
30     matchLabels:
31       name: {{ template "fullname" . }}
32   template:
33     metadata:
34       labels:
35         name: {{ template "fullname" . }}
36         app: {{ template "name" . }}
37         collector: cadvisor
38         release: {{ .Release.Name }}
39     spec:
40       hostNetwork: true
41       containers:
42       - name: {{ .Chart.Name }}
43         image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
44         imagePullPolicy: {{ .Values.image.pullPolicy }}
45         securityContext:
46           privileged: true
47         volumeMounts:
48         - name: rootfs
49           mountPath: /rootfs
50           readOnly: true
51         - name: var-run
52           mountPath: /var/run
53           readOnly: false
54         - name: sys
55           mountPath: /sys
56           readOnly: true
57         - name: docker
58           mountPath: /var/lib/docker
59           readOnly: true
60         ports:
61           - name: http
62             containerPort: 8080
63             protocol: TCP
64         args:
65           - --housekeeping_interval=10s
66       terminationGracePeriodSeconds: 30
67       volumes:
68       - name: rootfs
69         hostPath:
70           path: /
71       - name: var-run
72         hostPath:
73           path: /var/run
74       - name: sys
75         hostPath:
76           path: /sys
77       - name: docker
78         hostPath:
79           path: /var/lib/docker