-
Notifications
You must be signed in to change notification settings - Fork 2
/
router_reflector.yaml
72 lines (72 loc) · 1.79 KB
/
router_reflector.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
app: calico-router-reflector
name: calico-router-reflector
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: calico-router-reflector
strategy:
type: Recreate
template:
metadata:
labels:
app: calico-router-reflector
name: calico-router-reflector
namespace: kube-system
spec:
containers:
- env:
- name: ETCD_ENDPOINTS
valueFrom:
configMapKeyRef:
key: etcd_endpoints
name: calico-etcd-config
- name: ETCD_CA_CERT_FILE
valueFrom:
configMapKeyRef:
key: etcd_ca
name: calico-config
- name: ETCD_KEY_FILE
valueFrom:
configMapKeyRef:
key: etcd_key
name: calico-config
- name: ETCD_CERT_FILE
valueFrom:
configMapKeyRef:
key: etcd_cert
name: calico-config
- name: IP
value: IP
image: calico/routereflector:v0.5.0
imagePullPolicy: IfNotPresent
name: calico-router-reflector
resources: {}
volumeMounts:
- mountPath: /calico-secrets
name: etcd-certs
dnsPolicy: ClusterFirst
hostNetwork: true
nodeSelector:
calico-rr: "true"
restartPolicy: Always
tolerations:
- effect: NoSchedule
key: dedicated
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: etcd-certs
secret:
defaultMode: 420
secretName: calico-etcd-secret