blob: cfd37631c9bc8ef43fa03627d41ea8b00dc18d83 [file] [log] [blame]
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: onu
5 labels:
6 name: onu
7spec:
8 ports:
9 - name: grpc
10 port: 50061
11 targetPort: 50061
12 selector:
13 app: onu
14---
15apiVersion: apps/v1beta1
16kind: Deployment
17metadata:
18 name: onu
19spec:
20 replicas: 3
21 template:
22 metadata:
23 labels:
24 app: onu
25 annotations:
26 cni: "weave,pon0"
27 spec:
28 containers:
29 - name: onu
30 image: "voltha-ponsim:latest"
31 env:
32 - name: POD_IP
33 valueFrom:
34 fieldRef:
35 fieldPath: status.podIP
36 - name: NAMESPACE
37 valueFrom:
38 fieldRef:
39 fieldPath: metadata.namespace
40
41 args:
42 - "/app/ponsim"
43 - "-device_type"
44 - "ONU"
45 - "-parent_addr"
46 - "olt"
47 - "-grpc_port"
48 - "50061"
49 - "-internal_if"
50 - "eth0"
51 - "-external_if"
52 - "eth1"
53 - "-promiscuous"
54 - "-fluentd"
55 - "fluentd.$(NAMESPACE).svc.cluster.local:24224"
56
57 ports:
58 - containerPort: 50061
59 name: grpc-port
60
61 imagePullPolicy: Never