blob: 5449947f7eb58f415bdce712380c72cb63b3e39d [file] [log] [blame]
Richard Jankowskic9d89202018-01-25 10:25:10 -05001apiVersion: apps/v1beta1
2kind: Deployment
3metadata:
4 name: ofagent
Richard Jankowskid4454382018-02-08 16:21:43 -05005 namespace: voltha
Richard Jankowskic9d89202018-01-25 10:25:10 -05006spec:
7 replicas: 3
8 template:
9 metadata:
10 labels:
11 app: ofagent
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050012 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040013 cni: "calico"
Richard Jankowskic9d89202018-01-25 10:25:10 -050014 spec:
15 terminationGracePeriodSeconds: 10
Richard Jankowskic9d89202018-01-25 10:25:10 -050016 containers:
17 - name: ofagent
Richard Jankowskic3c291c2018-02-02 13:57:33 -050018 image: voltha-ofagent
Richard Jankowskic9d89202018-01-25 10:25:10 -050019 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 Jankowskic9d89202018-01-25 10:25:10 -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"