blob: 6311ac63451a656f3384503a8798a71974143893 [file] [log] [blame]
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ofagent
namespace: voltha
spec:
replicas: 1
template:
metadata:
labels:
app: ofagent
annotations:
cni: "weave"
spec:
terminationGracePeriodSeconds: 10
containers:
- name: ofagent
image: voltha-ofagent
imagePullPolicy: Never
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
args:
- "/ofagent/ofagent/main.py"
- "-v"
- "--consul=consul.$(NAMESPACE).svc.cluster.local:8500"
- "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224"
- "--controller=onos:6653"
- "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556"
- "--enable-tls"
- "--key-file=/ofagent/pki/voltha.key"
- "--cert-file=/ofagent/pki/voltha.crt"