blob: c282fce4a3d95a9d488d5fb9dbad1241466d7c3f [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
25 image: cord/ofagent
26 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"