-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdefault.yaml
94 lines (94 loc) · 2.03 KB
/
default.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
storageclass.kubernetes.io/is-default-class: "true"
name: thin-disk
parameters:
diskformat: thin
provisioner: kubernetes.io/vsphere-volume
reclaimPolicy: Delete
---
apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
name: vrops-cadvisor
namespace: kube-system
labels:
app: vrops-cadvisor
spec:
selector:
matchLabels:
name: vrops-cadvisor
template:
metadata:
labels:
name: vrops-cadvisor
version: v0.29.0
spec:
containers:
- name: vrops-cadvisor
image: google/cadvisor:v0.29.0
#imagePullPolicy: Never
volumeMounts:
- name: rootfs
mountPath: /rootfs
readOnly: true
- name: var-run
mountPath: /var/run
readOnly: false
- name: sys
mountPath: /sys
readOnly: true
- name: docker
mountPath: /var/lib/docker
readOnly: true
- name: containerd-sock
mountPath: /var/run/containerd/containerd.sock
readOnly: true
- name: docker-sock
mountPath: /var/run/docker.sock
readOnly: true
ports:
- name: http
containerPort: 8080
protocol: TCP
args:
- --profiling
- --housekeeping_interval=1s
terminationGracePeriodSeconds: 30
volumes:
- name: rootfs
hostPath:
path: /
- name: var-run
hostPath:
path: /var/run
- name: sys
hostPath:
path: /sys
- name: docker
hostPath:
path: /var/vcap/store/docker/docker
- name: containerd-sock
hostPath:
path: /var/run/docker/libcontainerd/docker-containerd.sock
- name: docker-sock
hostPath:
path: /var/vcap/sys/run/docker/docker.sock
---
kind: Service
apiVersion: v1
metadata:
name: vrops-cadvisor
namespace: kube-system
spec:
type: NodePort
selector:
name: vrops-cadvisor
ports:
- name: http
protocol: TCP
port: 4194
targetPort: 8080
nodePort: 31194