Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-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. |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 14 | # |
| 15 | # The dashd deployment |
| 16 | # |
| 17 | apiVersion: apps/v1beta1 |
| 18 | kind: Deployment |
| 19 | metadata: |
| 20 | name: dashd |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 21 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 22 | spec: |
| 23 | replicas: 1 |
| 24 | template: |
| 25 | metadata: |
| 26 | labels: |
| 27 | app: dashd |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 28 | annotations: |
| 29 | cni: "calico" |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 30 | spec: |
| 31 | containers: |
| 32 | - name: dashd |
| 33 | image: voltha-dashd |
| 34 | imagePullPolicy: Never |
| 35 | env: |
| 36 | - name: NAMESPACE |
| 37 | valueFrom: |
| 38 | fieldRef: |
| 39 | fieldPath: metadata.namespace |
| 40 | args: |
| 41 | - "/dashd/dashd/main.py" |
| 42 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
| 43 | - "--consul=consul:8500" |
| 44 | - "--grafana_url=http://admin:admin@grafana.$(NAMESPACE).svc.cluster.local:80/api" |
| 45 | - "--topic=voltha.kpis" |
| 46 | --- |
| 47 | # |
| 48 | # The shovel deployment |
| 49 | # |
| 50 | apiVersion: apps/v1beta1 |
| 51 | kind: Deployment |
| 52 | metadata: |
| 53 | name: shovel |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 54 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 55 | spec: |
| 56 | replicas: 1 |
| 57 | template: |
| 58 | metadata: |
| 59 | labels: |
| 60 | app: shovel |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 61 | annotations: |
| 62 | cni: "calico" |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 63 | spec: |
| 64 | containers: |
| 65 | - name: shovel |
| 66 | image: voltha-shovel |
| 67 | imagePullPolicy: Never |
| 68 | env: |
| 69 | - name: NAMESPACE |
| 70 | valueFrom: |
| 71 | fieldRef: |
| 72 | fieldPath: metadata.namespace |
| 73 | args: |
| 74 | - "/shovel/shovel/main.py" |
| 75 | - "--kafka=kafka.$(NAMESPACE).svc.cluster.local" |
| 76 | - "--consul=consul:8500" |
| 77 | - "--host=grafana.$(NAMESPACE).svc.cluster.local" |
| 78 | - "--topic=voltha.kpis" |