-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathkops-nodes.yaml
57 lines (57 loc) · 1.43 KB
/
kops-nodes.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: cert-exporter-nodes
name: cert-exporter-nodes
spec:
selector:
matchLabels:
name: cert-exporter-nodes
template:
metadata:
annotations:
prometheus.io/port: "8080"
prometheus.io/scrape: "true"
labels:
name: cert-exporter-nodes
spec:
containers:
- image: joeelliott/cert-exporter:v2.14.0
name: cert-exporter-nodes
command: ["./app"]
args:
- --include-kubeconfig-glob=/var/lib/*/kubeconfig
- --include-cert-glob=/srv/kubernetes/*.crt
- --logtostderr
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- mountPath: /var/lib/kubelet
mountPropagation: HostToContainer
name: kubelet
readOnly: true
- mountPath: /var/lib/kube-proxy
name: kube-proxy
readOnly: true
- mountPath: /srv/kubernetes
name: kube-root
readOnly: true
securityContext:
runAsUser: 0
volumes:
- name: kubelet
hostPath:
path: /var/lib/kubelet
type: Directory
- name: kube-proxy
hostPath:
path: /var/lib/kube-proxy
type: Directory
- name: kube-root
hostPath:
path: /srv/kubernetes
type: Directory