blob: a92e4421bfed15e34433f0c26e6af7a9fcc13667 [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
sslobodr16e41bc2019-01-18 16:22:21 -050015apiVersion: apps/v1beta1
16kind: Deployment
sslobodra3ea7d42019-01-16 15:03:16 -050017metadata:
18 name: afrouter
19 namespace: voltha
sslobodra3ea7d42019-01-16 15:03:16 -050020spec:
sslobodr16e41bc2019-01-18 16:22:21 -050021 replicas: 1
22 template:
23 metadata:
24 labels:
25 app: afrouter
26 annotations:
27 cni: "calico"
28 spec:
29 containers:
30 - name: arouter
31 image: volthacore/afrouter:testing
32 imagePullPolicy: Always
33 volumeMounts:
34 - name: config-volume
35 mountPath: /app/config
36 ports:
37 - containerPort: 55555
38 command: ["/app/afrouter"]
39 args: ["-config", "/app/config/arouter.voltha3.json"]
40 - name: envoy
41 image: volthacore/envoy
42 volumeMounts:
43 - name: config-volume
44 mountPath: /envoy/config
45 ports:
46 - containerPort: 8192
47 - containerPort: 50555
48 - name: arouterd
49 image: volthacore/afrouterd:testing
50 command: ["/app/arouterd"]
51 imagePullPolicy: Always
52 restartPolicy: Always
53 volumes:
54 - name: config-volume
55 configMap:
56 name: afrouter-config