blob: c2415ae61f0d2e5208524ad7de6376de3df2edd3 [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
16 affinity:
17 podAntiAffinity:
18 requiredDuringSchedulingIgnoredDuringExecution:
19 - labelSelector:
20 matchExpressions:
21 - key: app
22 operator: In
23 values:
24 - ofagent
25 topologyKey: kubernetes.io/hostname
26 containers:
27 - name: ofagent
Richard Jankowskic3c291c2018-02-02 13:57:33 -050028 image: voltha-ofagent
Richard Jankowskic9d89202018-01-25 10:25:10 -050029 imagePullPolicy: Never
30 env:
31 - name: NAMESPACE
32 valueFrom:
33 fieldRef:
34 fieldPath: metadata.namespace
35 args:
36 - "/ofagent/ofagent/main.py"
37 - "-v"
38 - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500"
Richard Jankowskic9d89202018-01-25 10:25:10 -050039 - "--controller=onos:6653"
40 - "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556"
41 - "--enable-tls"
42 - "--key-file=/ofagent/pki/voltha.key"
43 - "--cert-file=/ofagent/pki/voltha.crt"