-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdaemonset.yaml
42 lines (42 loc) · 1.08 KB
/
daemonset.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
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: calico-accountant
namespace: kube-system
spec:
selector:
matchLabels:
app: calico-accountant
template:
metadata:
labels:
app: calico-accountant
spec:
serviceAccountName: calico-accountant
containers:
- command:
- "/calico-accountant"
- "-logtostderr=true"
- "-v=2"
env:
- name: ETCD_ENDPOINTS
valueFrom:
configMapKeyRef:
name: calico-config
key: etcd_endpoints
# On EKS/GKE with Calico using control plane etcd,
# instead of ETCD_ENDPOINTS, use:
# - name: DATASTORE_TYPE
# value: "kubernetes"
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: METRICS_SERVER_PORT
value: "9009"
image: monzo/calico-accountant:v0.1.1
name: calico-accountant
securityContext:
privileged: true
hostNetwork: true