blob: ec603f50548e9058aea68f444be672f54c6b610c [file] [log] [blame]
Richard Jankowski1b299922019-03-05 15:49:24 -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: 1
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: volthacore/voltha-ofagent:rich
33 imagePullPolicy: Always
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:6653"
44 - "--grpc-endpoint=rw-core.$(NAMESPACE).svc.cluster.local:50057"
45 - "--enable-tls"
46 - "--key-file=/ofagent/pki/voltha.key"
47 - "--cert-file=/ofagent/pki/voltha.crt"