-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathcnfs-vpp.yaml
113 lines (110 loc) · 2.71 KB
/
cnfs-vpp.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
# this config maps tells the vpp-agent running as a CNF how to connect to ETCD
# from where the VPP agent gets its configuration
apiVersion: v1
kind: ConfigMap
metadata:
name: etcd-cfg
labels:
name: etcd-cfg
namespace: default
data:
etcd.conf: |
insecure-transport: true
dial-timeout: 10000000000
allow-delayed-start: true
endpoints:
- "contiv-etcd.kube-system.svc.cluster.local:12379"
---
# VPP CNF 1 pod definition. Pod is connected with one additional memif interface
# in the "stub" network = meaning that it won't have any IP address assigned
apiVersion: v1
kind: Pod
metadata:
name: vpp-cnf1
annotations:
contivpp.io/custom-if: memif1/memif/stub
contivpp.io/microservice-label: vpp-cnf1
labels:
cnf: vpp-cnf1
spec:
containers:
- name: vpp-agent
image: ligato/vpp-agent:v2.1.1
env:
- name: ETCD_CONFIG
value: "/etc/etcd/etcd.conf"
- name: MICROSERVICE_LABEL
value: vpp-cnf1
resources:
limits:
contivpp.io/memif: 1
volumeMounts:
- name: etcd-cfg
mountPath: /etc/etcd
volumes:
- name: etcd-cfg
configMap:
name: etcd-cfg
---
# CNF 2 pod definition. Pod is connected with two additional memif interfaces
# in the "stub" network = meaning that they won't have any IP address assigned
apiVersion: v1
kind: Pod
metadata:
name: vpp-cnf2
annotations:
contivpp.io/custom-if: memif1/memif/stub, memif2/memif/stub
contivpp.io/microservice-label: vpp-cnf2
labels:
cnf: vpp-cnf2
spec:
containers:
- name: vpp-agent
image: ligato/vpp-agent:v2.1.1
env:
- name: ETCD_CONFIG
value: "/etc/etcd/etcd.conf"
- name: MICROSERVICE_LABEL
value: vpp-cnf2
resources:
limits:
contivpp.io/memif: 1
volumeMounts:
- name: etcd-cfg
mountPath: /etc/etcd
volumes:
- name: etcd-cfg
configMap:
name: etcd-cfg
---
# CNF 3 pod definition. Pod is connected with one additional memif interface
# in the "stub" network = meaning that it won't have any IP address assigned
apiVersion: v1
kind: Pod
metadata:
name: vpp-cnf3
annotations:
contivpp.io/custom-if: memif1/memif/stub
contivpp.io/microservice-label: vpp-cnf3
labels:
cnf: vpp-cnf3
spec:
containers:
- name: vpp-agent
image: ligato/vpp-agent:v2.1.1
env:
- name: ETCD_CONFIG
value: "/etc/etcd/etcd.conf"
- name: MICROSERVICE_LABEL
value: vpp-cnf3
resources:
limits:
contivpp.io/memif: 1
volumeMounts:
- name: etcd-cfg
mountPath: /etc/etcd
volumes:
- name: etcd-cfg
configMap:
name: etcd-cfg