blob: ec066646befcfeec922796a38b1e6a32d6ca5c5d [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:
13 cni: "weave"
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"
39 - "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224"
40 - "--controller=onos:6653"
41 - "--grpc-endpoint=vcore.$(NAMESPACE).svc.cluster.local:50556"
42 - "--enable-tls"
43 - "--key-file=/ofagent/pki/voltha.key"
44 - "--cert-file=/ofagent/pki/voltha.crt"