1f659f2b4ca0bfd0aeb2877107f2fecfe86fff49
[demo.git] / vnfs / DAaaS / 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   selector:
28     matchLabels:
29       name: {{ template "fullname" . }}
30   template:
31     metadata:
32       labels:
33         name: {{ template "fullname" . }}
34         app: {{ template "name" . }}
35         collector: cadvisor
36         release: {{ .Release.Name }}
37     spec:
38       hostNetwork: true
39       containers:
40       - name: {{ .Chart.Name }}
41         image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
42         imagePullPolicy: {{ .Values.image.pullPolicy }}
43         securityContext:
44           privileged: true
45         volumeMounts:
46         - name: rootfs
47           mountPath: /rootfs
48           readOnly: true
49         - name: var-run
50           mountPath: /var/run
51           readOnly: false
52         - name: sys
53           mountPath: /sys
54           readOnly: true
55         - name: docker
56           mountPath: /var/lib/docker
57           readOnly: true
58         ports:
59           - name: http
60             containerPort: 8080
61             protocol: TCP
62         args:
63           - --housekeeping_interval=10s
64       terminationGracePeriodSeconds: 30
65       volumes:
66       - name: rootfs
67         hostPath:
68           path: /
69       - name: var-run
70         hostPath:
71           path: /var/run
72       - name: sys
73         hostPath:
74           path: /sys
75       - name: docker
76         hostPath:
77           path: /var/lib/docker