-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathflannel.yaml
47 lines (47 loc) · 1.03 KB
/
flannel.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
apiVersion: v1
kind: Pod
metadata:
name: flannel-server
namespace: system
labels:
app: flannel-server
enable: "true"
service: "base"
spec:
hostNetwork: true
containers:
- name: flannel-server
image: reg.dnt:5000/coreos/flannel:v0.6.2
command:
- /bin/sh
- -c
- /opt/bin/flanneld --logtostderr -ip-masq -etcd-endpoints $ETCD_INFO -etcd-prefix /kubernetes/network 1>>/var/log/flannel.log 2>&1
resources:
limits:
cpu: 1000m
memory: 2048Mi
requests:
cpu: 500m
memory: 1024Mi
env:
- name: ETCD_INFO
value: "http://10.78.198.74:14001"
volumeMounts:
- mountPath: /var/log/flannel.log
name: logfile
- mountPath: /run/flannel
name: flannelenv
- mountPath: /dev/net
name: flannelnet
securityContext:
privileged: true
volumes:
- hostPath:
path: /data/logs/base/flannel.log
name: logfile
- hostPath:
path: /run/flannel
name: flannelenv
- hostPath:
path: /dev/net
name: flannelnet