sslobodr | a3ea7d4 | 2019-01-16 15:03:16 -0500 | [diff] [blame] | 1 | # 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 | |
sslobodr | 16e41bc | 2019-01-18 16:22:21 -0500 | [diff] [blame] | 15 | apiVersion: apps/v1beta1 |
| 16 | kind: Deployment |
sslobodr | a3ea7d4 | 2019-01-16 15:03:16 -0500 | [diff] [blame] | 17 | metadata: |
| 18 | name: afrouter |
| 19 | namespace: voltha |
sslobodr | a3ea7d4 | 2019-01-16 15:03:16 -0500 | [diff] [blame] | 20 | spec: |
sslobodr | 16e41bc | 2019-01-18 16:22:21 -0500 | [diff] [blame] | 21 | 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 |