blob: 1f548ac179e840e7f0b411b750c75925eaf5979a [file] [log] [blame]
Richard Jankowski00a04662019-02-05 12:18:53 -05001# 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.
14
15apiVersion: apps/v1beta1
16kind: Deployment
17metadata:
18 name: ofagent
19 namespace: voltha
20spec:
21 replicas: 3
22 template:
23 metadata:
24 labels:
25 app: ofagent
26 annotations:
27 cni: "calico"
28 spec:
29 terminationGracePeriodSeconds: 10
30 containers:
31 - name: ofagent
32 image: voltha-ofagent
33 imagePullPolicy: IfNotPresent
34 env:
35 - name: NAMESPACE
36 valueFrom:
37 fieldRef:
38 fieldPath: metadata.namespace
39 args:
40 - "/ofagent/ofagent/main.py"
41 - "-v"
42 - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500"
43 - "--controller=onos.$(NAMESPACE).svc.cluster.local:6653"
44 - "--grpc-endpoint=afrouter.$(NAMESPACE).svc.cluster.local:55555"