blob: af5c1f4869a3aaa326620261689aaa4a8b912eff [file] [log] [blame]
Richard Jankowski15274592017-12-12 15:52:37 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: voltha
Richard Jankowskid4454382018-02-08 16:21:43 -05005 namespace: voltha
Richard Jankowski15274592017-12-12 15:52:37 -05006 labels:
7 name: voltha
8spec:
9 clusterIP: None
10 ports:
11 - name: rest
12 port: 8882
13 targetPort: 8882
14 - name: mystery
15 port: 8001
16 targetPort: 8001
17 - name: mystery2
18 port: 8443
19 targetPort: 8443
20 - name: grpc
21 port: 50555
22 targetPort: 50555
23 selector:
24 app: voltha
25---
26apiVersion: apps/v1beta1
27kind: Deployment
28metadata:
29 name: voltha
Richard Jankowskid4454382018-02-08 16:21:43 -050030 namespace: voltha
Richard Jankowski15274592017-12-12 15:52:37 -050031spec:
32 replicas: 1
33 template:
34 metadata:
35 labels:
36 app: voltha
37 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 - "-kv=etcd"
Richard Jankowskid4454382018-02-08 16:21:43 -050055 - "-kv-svc-name=etcd.$(NAMESPACE).svc.cluster.local"
Richard Jankowski15274592017-12-12 15:52:37 -050056 - "-kv-port=2379"
57 ports:
58 - containerPort: 8882
59 name: rest-port
60 - containerPort: 8001
61 name: mystery-port
62 - containerPort: 8443
63 name: mystery2-port
64 - containerPort: 50555
65 name: grpc-port
66 imagePullPolicy: Never
67
68