blob: ac82f2a9048bfd217256acd16e2bd73235dd8f8a [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:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040013 cni: "calico"
Richard Jankowskid7921b72018-02-20 16:55:12 -050014 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"