blob: 9093c3bf85792e6ef8fc57d99ac976dcbe3439c2 [file] [log] [blame]
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: olt
5 labels:
6 name: olt
7spec:
8 ports:
9 - name: grpc
10 port: 50060
11 targetPort: 50060
12 selector:
13 app: olt
14---
15apiVersion: apps/v1beta1
16kind: Deployment
17metadata:
18 name: olt
19spec:
20 replicas: 1
21 template:
22 metadata:
23 labels:
24 app: olt
25 annotations:
26 cni: "weave"
27 spec:
28 containers:
29 - name: olt
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 - "OLT"
45 - "-onus"
46 - "3"
47 - "-internal_if"
48 - "eth0"
49 - "-external_if"
50 - "eth0"
51 - "-vcore_endpoint"
52 - "vcore"
53 - "-promiscuous"
54 - "-fluentd"
55 - "fluentd.$(NAMESPACE).svc.cluster.local:24224"
56
57 ports:
58 - containerPort: 50060
59 name: grpc-port
60
61 imagePullPolicy: Never