blob: d217eee65ae86dcf92b2d48bca14891cac8e60ca [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:
Richard Jankowski4ea26632018-05-14 17:45:38 -04009 type: NodePort
Richard Jankowski15274592017-12-12 15:52:37 -050010 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
Richard Jankowski4ea26632018-05-14 17:45:38 -040019 nodePort: 32443
Richard Jankowski15274592017-12-12 15:52:37 -050020 targetPort: 8443
21 - name: grpc
22 port: 50555
23 targetPort: 50555
24 selector:
25 app: voltha
26---
27apiVersion: apps/v1beta1
28kind: Deployment
29metadata:
30 name: voltha
Richard Jankowskid4454382018-02-08 16:21:43 -050031 namespace: voltha
Richard Jankowski15274592017-12-12 15:52:37 -050032spec:
33 replicas: 1
34 template:
35 metadata:
36 labels:
37 app: voltha
38 spec:
39 containers:
40 - name: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050041 image: voltha-envoy
Richard Jankowski15274592017-12-12 15:52:37 -050042 env:
43 - name: POD_IP
44 valueFrom:
45 fieldRef:
46 fieldPath: status.podIP
47 - name: NAMESPACE
48 valueFrom:
49 fieldRef:
50 fieldPath: metadata.namespace
51 args:
52 - "/usr/local/bin/envoyd"
53 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
54 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
55 - "-kv=etcd"
Richard Jankowskid4454382018-02-08 16:21:43 -050056 - "-kv-svc-name=etcd.$(NAMESPACE).svc.cluster.local"
Richard Jankowski15274592017-12-12 15:52:37 -050057 - "-kv-port=2379"
58 ports:
59 - containerPort: 8882
60 name: rest-port
61 - containerPort: 8001
62 name: mystery-port
63 - containerPort: 8443
64 name: mystery2-port
65 - containerPort: 50555
66 name: grpc-port
67 imagePullPolicy: Never
68
69