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