blob: 59bcfd01a129bd5b1a5dd949568d93fcc27de0f2 [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:
37 - name: POD_IP
38 valueFrom:
39 fieldRef:
40 fieldPath: status.podIP
41 - name: NAMESPACE
42 valueFrom:
43 fieldRef:
44 fieldPath: metadata.namespace
45 args:
46 - "voltha/voltha/main.py"
47 - "-v"
48 - "--consul=consul:8500"
49 - "--etcd=etcd:2379"
50 - "--kafka=kafka"
51 - "--rest-port=8880"
52 - "--grpc-port=50556"
53 - "--interface=eth1"
54 - "--backend=etcd"
55 - "--pon-subnet=172.29.19.0/24"
56 ports:
57 - containerPort: 8880
58 name: rest-port
59 - containerPort: 18880
60 name: mystery-port
61 - containerPort: 50556
62 name: grpc-port
63 imagePullPolicy: Never
64
65