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