blob: 67aedaef427a167ac1c6b9a70239c3707e6167ba [file] [log] [blame]
Hyunsun Moon81c8e232019-05-21 03:40:22 -06001# Copyright 2019-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Hyunsun Moon89886f12019-09-05 22:16:09 -060014
Hyunsun Moon81c8e232019-05-21 03:40:22 -060015---
16apiVersion: v1
17kind: Pod
18metadata:
19 name: router
20 labels:
Hyunsun Moon89886f12019-09-05 22:16:09 -060021 app: router
Hyunsun Moon81c8e232019-05-21 03:40:22 -060022 annotations:
23 k8s.v1.cni.cncf.io/networks: '[
Hyunsun Moon07decd42019-08-19 13:59:52 -060024 { "name": "sgi-net", "interface": "sgi-rtr", "ips": "13.1.1.254/24" }
Hyunsun Moon81c8e232019-05-21 03:40:22 -060025 ]'
26spec:
27 containers:
28 - name: quagga
29 command: ["/bin/bash", "-c"]
30 args:
31 - >
Hyunsun Moon81c8e232019-05-21 03:40:22 -060032 trap : TERM INT; sleep infinity & wait
33 image: opencord/quagga
34 securityContext:
35 capabilities:
36 add:
37 - NET_ADMIN
38 ports:
39 - containerPort: 2601