blob: 23ca30078e1b773af04f195aafdd9c380da02bdb [file] [log] [blame]
Richard Jankowski54f7a862017-12-20 13:31:10 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: vcore
Richard Jankowskid4454382018-02-08 16:21:43 -05005 namespace: voltha
Richard Jankowski54f7a862017-12-20 13:31:10 -05006 labels:
7 name: vcore
8spec:
9 clusterIP: None
10 ports:
11 - name: rest
12 port: 8880
13 targetPort: 8880
14 - name: mystery
15 port: 18880
16 targetPort: 18880
17 - name: grpc
18 port: 50556
19 targetPort: 50556
20 selector:
21 app: vcore
22---
23apiVersion: apps/v1beta1
24kind: Deployment
25metadata:
26 name: vcore
Richard Jankowskid4454382018-02-08 16:21:43 -050027 namespace: voltha
Richard Jankowski54f7a862017-12-20 13:31:10 -050028spec:
29 replicas: 3
30 template:
31 metadata:
32 labels:
33 app: vcore
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050034 annotations:
35 cni: "weave"
Richard Jankowski54f7a862017-12-20 13:31:10 -050036 spec:
37 containers:
38 - name: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050039 image: voltha-voltha
Richard Jankowski54f7a862017-12-20 13:31:10 -050040 env:
Richard Jankowski54f7a862017-12-20 13:31:10 -050041 - name: NAMESPACE
42 valueFrom:
43 fieldRef:
44 fieldPath: metadata.namespace
45 args:
46 - "voltha/voltha/main.py"
47 - "-v"
Richard Jankowskie5858082018-01-15 18:25:38 -050048 - "--etcd=etcd.$(NAMESPACE).svc.cluster.local:2379"
49 - "--kafka=kafka.$(NAMESPACE).svc.cluster.local"
Richard Jankowskic9d89202018-01-25 10:25:10 -050050 - "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224"
Richard Jankowski54f7a862017-12-20 13:31:10 -050051 - "--rest-port=8880"
52 - "--grpc-port=50556"
53 - "--interface=eth1"
54 - "--backend=etcd"
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050055 - "--pon-subnet=10.38.0.0/12"
56 - "--ponsim-comm=grpc"
Richard Jankowski54f7a862017-12-20 13:31:10 -050057 ports:
58 - containerPort: 8880
59 name: rest-port
60 - containerPort: 18880
61 name: mystery-port
62 - containerPort: 50556
63 name: grpc-port
64 imagePullPolicy: Never
65
66