blob: 2bf537f629d0c7d53a152264ff86aacc471ff3ec [file] [log] [blame]
sslobodra3ea7d42019-01-16 15:03:16 -05001# Copyright 2018 the original author or authors.
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.
14
Richard Jankowski00a04662019-02-05 12:18:53 -050015apiVersion: v1
16kind: Service
17metadata:
18 name: afrouter
19 namespace: voltha
20spec:
21 clusterIP: None
22 ports:
23 - name: grpc
24 port: 55555
25 targetPort: 55555
26 selector:
27 app: afrouter
28---
sslobodr16e41bc2019-01-18 16:22:21 -050029apiVersion: apps/v1beta1
30kind: Deployment
sslobodra3ea7d42019-01-16 15:03:16 -050031metadata:
32 name: afrouter
33 namespace: voltha
sslobodra3ea7d42019-01-16 15:03:16 -050034spec:
sslobodr16e41bc2019-01-18 16:22:21 -050035 replicas: 1
36 template:
37 metadata:
38 labels:
39 app: afrouter
40 annotations:
41 cni: "calico"
42 spec:
43 containers:
44 - name: arouter
45 image: volthacore/afrouter:testing
46 imagePullPolicy: Always
47 volumeMounts:
48 - name: config-volume
49 mountPath: /app/config
50 ports:
51 - containerPort: 55555
52 command: ["/app/afrouter"]
Stephane Barbarie1e28f3e2019-02-08 15:45:20 -050053 args: ["-config", "/app/config/arouter.voltha.json"]
sslobodr16e41bc2019-01-18 16:22:21 -050054 - name: envoy
55 image: volthacore/envoy
56 volumeMounts:
57 - name: config-volume
58 mountPath: /envoy/config
59 ports:
60 - containerPort: 8192
61 - containerPort: 50555
62 - name: arouterd
63 image: volthacore/afrouterd:testing
64 command: ["/app/arouterd"]
65 imagePullPolicy: Always
66 restartPolicy: Always
67 volumes:
68 - name: config-volume
69 configMap:
70 name: afrouter-config