-
Notifications
You must be signed in to change notification settings - Fork 0
/
10-frr-pod.yaml
83 lines (83 loc) · 1.97 KB
/
10-frr-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
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
apiVersion: v1
kind: Pod
metadata:
name: ext-gw
namespace: frr
annotations:
k8s.v1.cni.cncf.io/networks: '[
{
"name": "external-net",
"interface": "external",
"ips": [ "198.18.112.99/24" ],
"default-route": [ "198.18.112.254" ]
},
{
"name": "internal-net",
"interface": "internal",
"ips": [ "198.18.111.99/24" ]
}
]'
k8s.v1.cni.cncf.io/network-status: |-
[{
"name": "frr/external-net",
"interface": "external",
"ips": [
"198.18.112.99"
],
"dns": {}
},{
"name": "frr/internal-net",
"interface": "internal",
"ips": [
"198.18.111.99"
],
"dns": {}
}]
k8s.ovn.org/routing-namespaces: "foo,bar"
k8s.ovn.org/bfd-enabled: ""
k8s.ovn.org/routing-network: "frr/internal-net"
spec:
# hostNetwork: true
# serviceAccountName: ext-gw-sa
# serviceAccount: ext-gw-sa
containers:
- name: frr
image: quay.io/wcaban/frr
# command:
# - sleep
# - infinity
command: ["/bin/sh","-c"]
args: ["/usr/libexec/frr/frrinit.sh start && tail -f /tmp/frr.log "]
ports:
- name: bfd
containerPort: 3784
protocol: UDP
- name: bgp
containerPort: 179
protocol: TCP
- name: rip
containerPort: 520
protocol: UDP
- name: ripng
containerPort: 521
protocol: UDP
- name: stats
containerPort: 9000
protocol: TCP
# ServiceAccount requires "privileged" SCC
# oc adm policy add-scc-to-user privileged -z default
securityContext:
privileged: true
# capabilities:
# add:
# - NET_RAW
# - NET_ADMIN
volumeMounts:
- name: config-volume
mountPath: /etc/frr
volumes:
- name: config-volume
configMap:
name: frr-configs
nodeSelector:
kubernetes.io/hostname: w1