blob: 2b7537c53e917ee50d273968071413a5bc893cf7 [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
Richard Jankowskic3c291c2018-02-02 13:57:33 -050038 image: voltha-envoy
Richard Jankowski15274592017-12-12 15:52:37 -050039 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 - "-kv=etcd"
53 - "-kv-svc-name=etcd"
54 - "-kv-port=2379"
55 ports:
56 - containerPort: 8882
57 name: rest-port
58 - containerPort: 8001
59 name: mystery-port
60 - containerPort: 8443
61 name: mystery2-port
62 - containerPort: 50555
63 name: grpc-port
64 imagePullPolicy: Never
65
66