blob: b93ee2e1e8e855b28207a42f79f2ca94b0bc8ac5 [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
35 spec:
36 containers:
37 - name: voltha
38 image: "voltha/envoy:latest"
39 env:
40 - name: POD_IP
41 valueFrom:
42 fieldRef:
43 fieldPath: status.podIP
44 - name: NAMESPACE
45 valueFrom:
46 fieldRef:
47 fieldPath: metadata.namespace
48 args:
49 - "/usr/local/bin/envoyd"
50 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
51 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
52 ports:
53 - containerPort: 8882
54 name: rest-port
55 - containerPort: 8001
56 name: mystery-port
57 - containerPort: 8443
58 name: mystery2-port
59 - containerPort: 50555
60 name: grpc-port
61 imagePullPolicy: Never
62
63