blob: 6311ac63451a656f3384503a8798a71974143893 [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"
29 - "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224"
30 - "--controller=onos:6653"
31 - "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556"
32 - "--enable-tls"
33 - "--key-file=/ofagent/pki/voltha.key"
34 - "--cert-file=/ofagent/pki/voltha.crt"