blob: 5b6e7e47526286273104dd9b95604fd96ca5f73d [file] [log] [blame]
Richard Jankowski15274592017-12-12 15:52:37 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: voltha
5 labels:
6 name: voltha
7spec:
8 clusterIP: None
9 ports:
10 - name: rest
11 port: 8882
12 targetPort: 8882
13 - name: mystery
14 port: 8001
15 targetPort: 8001
16 - name: mystery2
17 port: 8443
18 targetPort: 8443
19 - name: grpc
20 port: 50555
21 targetPort: 50555
22 selector:
23 app: voltha
24---
25apiVersion: apps/v1beta1
26kind: Deployment
27metadata:
28 name: voltha
29spec:
30 replicas: 1
31 template:
32 metadata:
33 labels:
34 app: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050035 annotations:
36 cni: "weave"
Richard Jankowski15274592017-12-12 15:52:37 -050037 spec:
38 containers:
39 - name: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050040 image: voltha-envoy
Richard Jankowski15274592017-12-12 15:52:37 -050041 env:
42 - name: POD_IP
43 valueFrom:
44 fieldRef:
45 fieldPath: status.podIP
46 - name: NAMESPACE
47 valueFrom:
48 fieldRef:
49 fieldPath: metadata.namespace
50 args:
51 - "/usr/local/bin/envoyd"
52 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
53 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
54 ports:
55 - containerPort: 8882
56 name: rest-port
57 - containerPort: 8001
58 name: mystery-port
59 - containerPort: 8443
60 name: mystery2-port
61 - containerPort: 50555
62 name: grpc-port
63 imagePullPolicy: Never
64
65