blob: fc3b45f7b0422ed47e1492aa319ffaa9a0e9d771 [file] [log] [blame]
Richard Jankowskid7921b72018-02-20 16:55:12 -05001apiVersion: apps/v1beta1
2kind: Deployment
3metadata:
4 name: ofagent
5 namespace: voltha
6spec:
7 replicas: 1
8 template:
9 metadata:
10 labels:
11 app: ofagent
12 annotations:
13 cni: "weave"
14 spec:
15 terminationGracePeriodSeconds: 10
16 containers:
17 - name: ofagent
18 image: voltha-ofagent
19 imagePullPolicy: Never
20 env:
21 - name: NAMESPACE
22 valueFrom:
23 fieldRef:
24 fieldPath: metadata.namespace
25 args:
26 - "/ofagent/ofagent/main.py"
27 - "-v"
28 - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500"
Richard Jankowskid7921b72018-02-20 16:55:12 -050029 - "--controller=onos:6653"
30 - "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556"
31 - "--enable-tls"
32 - "--key-file=/ofagent/pki/voltha.key"
33 - "--cert-file=/ofagent/pki/voltha.crt"