blob: ea207fc53c0333de5b7ea2508789c0f46adbbe90 [file] [log] [blame]
Richard Jankowski54f7a862017-12-20 13:31:10 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: vcore
5 labels:
6 name: vcore
7spec:
8 clusterIP: None
9 ports:
10 - name: rest
11 port: 8880
12 targetPort: 8880
13 - name: mystery
14 port: 18880
15 targetPort: 18880
16 - name: grpc
17 port: 50556
18 targetPort: 50556
19 selector:
20 app: vcore
21---
22apiVersion: apps/v1beta1
23kind: Deployment
24metadata:
25 name: vcore
26spec:
27 replicas: 3
28 template:
29 metadata:
30 labels:
31 app: vcore
32 spec:
33 containers:
34 - name: voltha
35 image: "cord/voltha:latest"
36 env:
Richard Jankowski54f7a862017-12-20 13:31:10 -050037 - name: NAMESPACE
38 valueFrom:
39 fieldRef:
40 fieldPath: metadata.namespace
41 args:
42 - "voltha/voltha/main.py"
43 - "-v"
Richard Jankowskie5858082018-01-15 18:25:38 -050044 - "--etcd=etcd.$(NAMESPACE).svc.cluster.local:2379"
45 - "--kafka=kafka.$(NAMESPACE).svc.cluster.local"
Richard Jankowskic9d89202018-01-25 10:25:10 -050046 - "--fluentd=fluentd.$(NAMESPACE).svc.cluster.local:24224"
Richard Jankowski54f7a862017-12-20 13:31:10 -050047 - "--rest-port=8880"
48 - "--grpc-port=50556"
49 - "--interface=eth1"
50 - "--backend=etcd"
51 - "--pon-subnet=172.29.19.0/24"
52 ports:
53 - containerPort: 8880
54 name: rest-port
55 - containerPort: 18880
56 name: mystery-port
57 - containerPort: 50556
58 name: grpc-port
59 imagePullPolicy: Never
60
61