blob: 6b18657a8ecb0b49c2f1a8ddcd99837497ac5441 [file] [log] [blame]
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: olt
Stephane Barbarie35595062018-02-08 08:34:39 -05005 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05006 labels:
7 name: olt
8spec:
9 ports:
10 - name: grpc
11 port: 50060
12 targetPort: 50060
13 selector:
14 app: olt
15---
16apiVersion: apps/v1beta1
17kind: Deployment
18metadata:
19 name: olt
Stephane Barbarie35595062018-02-08 08:34:39 -050020 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050021spec:
22 replicas: 1
23 template:
24 metadata:
25 labels:
26 app: olt
27 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040028 cni: "calico"
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050029 spec:
30 containers:
31 - name: olt
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 - "OLT"
47 - "-onus"
Richard Jankowski8f52afb2018-03-29 14:19:11 -040048 - "4"
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050049 - "-internal_if"
50 - "eth0"
51 - "-external_if"
52 - "eth0"
53 - "-vcore_endpoint"
54 - "vcore"
55 - "-promiscuous"
56 - "-fluentd"
57 - "fluentd.$(NAMESPACE).svc.cluster.local:24224"
58
59 ports:
60 - containerPort: 50060
61 name: grpc-port
62
63 imagePullPolicy: Never