-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbundle.yaml
74 lines (74 loc) · 1.73 KB
/
bundle.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
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-vxlan-controller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kube-vxlan-controller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: kube-vxlan-controller
namespace: kube-system
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-vxlan-controller
namespace: kube-system
data:
vxeth0: id=100 up
vxeth1: id=101 up
vxeth2: id=102 up
vxeth3: id=103 up
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-vxlan-controller-config
namespace: kube-system
data:
config: |
[{'kube-vxlan-controller', [
{db_file, "/usr/share/kube-vxlan-controller/db"},
{selector, "vxlan.openvnf.org"},
{annotation, "vxlan.openvnf.org/networks"}
]}].
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: kube-vxlan-controller
name: kube-vxlan-controller
namespace: kube-system
spec:
template:
metadata:
labels:
run: kube-vxlan-controller
spec:
containers:
- name: kube-vxlan-controller
image: openvnf/kube-vxlan-controller:latest
args:
- run
volumeMounts:
- name: kube-vxlan-controller-config
mountPath: /etc/kube-vxlan-controller
- name: kube-vxlan-controller-db
mountPath: /usr/share/kube-vxlan-controller
volumes:
- name: kube-vxlan-controller-config
configMap:
name: kube-vxlan-controller-config
- name: kube-vxlan-controller-db
emptyDir: {}
serviceAccount: kube-vxlan-controller
serviceAccountName: kube-vxlan-controller