apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: ofagent | |
namespace: voltha | |
spec: | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: ofagent | |
annotations: | |
cni: "calico" | |
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" | |
- "--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" |