blob: 7598d0b94dbd64d9c5babf3bda0c24ea856ca551 [file] [log] [blame]
Richard Jankowskic9d89202018-01-25 10:25:10 -05001apiVersion: apps/v1beta1
2kind: Deployment
3metadata:
4 name: ofagent
5spec:
6 replicas: 3
7 template:
8 metadata:
9 labels:
10 app: ofagent
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050011 annotations:
12 cni: "weave"
Richard Jankowskic9d89202018-01-25 10:25:10 -050013 spec:
14 terminationGracePeriodSeconds: 10
15 affinity:
16 podAntiAffinity:
17 requiredDuringSchedulingIgnoredDuringExecution:
18 - labelSelector:
19 matchExpressions:
20 - key: app
21 operator: In
22 values:
23 - ofagent
24 topologyKey: kubernetes.io/hostname
25 containers:
26 - name: ofagent
Richard Jankowskic3c291c2018-02-02 13:57:33 -050027 image: voltha-ofagent
Richard Jankowskic9d89202018-01-25 10:25:10 -050028 imagePullPolicy: Never
29 env:
30 - name: NAMESPACE
31 valueFrom:
32 fieldRef:
33 fieldPath: metadata.namespace
34 args:
35 - "/ofagent/ofagent/main.py"
36 - "-v"
37 - "--consul=consul.$(NAMESPACE).svc.cluster.local:8500"
38 - "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224"
39 - "--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"