-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathmemif-pod.yaml
55 lines (54 loc) · 1.51 KB
/
memif-pod.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
---
# This config maps tells the vpp-agent running in the memif-pod how to connect to ETCD
# from where the VPP agent gets its memif 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"
---
# Memif pod definition. Pod is connected with one additional memif interface
# in the "default" pod network = IP address assigned from the standard pod subnet.
# The "service-endpoint-if" annotation tells Contiv to route all k8s service endpoint traffic
# destined to this pod towards the memif interfaces instead of the primary pod interface.
apiVersion: v1
kind: Pod
metadata:
name: memif-pod
annotations:
contivpp.io/custom-if: memif1/memif
contivpp.io/service-endpoint-if: memif1
contivpp.io/microservice-label: memif-pod
labels:
app: memif-pod
spec:
containers:
- name: vpp-agent
image: ligato/vpp-agent:v2.1.1
imagePullPolicy: IfNotPresent
env:
- name: ETCD_CONFIG
value: "/etc/etcd/etcd.conf"
- name: MICROSERVICE_LABEL
value: memif-pod
- name: ETCD_EXPAND_ENV_VARS
value: "true"
resources:
limits:
contivpp.io/memif: 1
volumeMounts:
- name: etcd-cfg
mountPath: /etc/etcd
volumes:
- name: etcd-cfg
configMap:
name: etcd-cfg