blob: 69a6584d5d695b8b56853fccc45d75a78a1afe42 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Richard Jankowski15274592017-12-12 15:52:37 -050014apiVersion: v1
15kind: Service
16metadata:
17 name: voltha
Richard Jankowskid4454382018-02-08 16:21:43 -050018 namespace: voltha
Richard Jankowski15274592017-12-12 15:52:37 -050019 labels:
20 name: voltha
21spec:
Richard Jankowski4ea26632018-05-14 17:45:38 -040022 type: NodePort
Richard Jankowski15274592017-12-12 15:52:37 -050023 ports:
24 - name: rest
25 port: 8882
26 targetPort: 8882
27 - name: mystery
28 port: 8001
29 targetPort: 8001
30 - name: mystery2
31 port: 8443
Richard Jankowski4ea26632018-05-14 17:45:38 -040032 nodePort: 32443
Richard Jankowski15274592017-12-12 15:52:37 -050033 targetPort: 8443
34 - name: grpc
35 port: 50555
36 targetPort: 50555
37 selector:
38 app: voltha
39---
40apiVersion: apps/v1beta1
41kind: Deployment
42metadata:
43 name: voltha
Richard Jankowskid4454382018-02-08 16:21:43 -050044 namespace: voltha
Richard Jankowski15274592017-12-12 15:52:37 -050045spec:
46 replicas: 1
47 template:
48 metadata:
49 labels:
50 app: voltha
51 spec:
52 containers:
53 - name: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050054 image: voltha-envoy
Richard Jankowski15274592017-12-12 15:52:37 -050055 env:
56 - name: POD_IP
57 valueFrom:
58 fieldRef:
59 fieldPath: status.podIP
60 - name: NAMESPACE
61 valueFrom:
62 fieldRef:
63 fieldPath: metadata.namespace
64 args:
65 - "/usr/local/bin/envoyd"
66 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
67 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
68 - "-kv=etcd"
Richard Jankowskid4454382018-02-08 16:21:43 -050069 - "-kv-svc-name=etcd.$(NAMESPACE).svc.cluster.local"
Richard Jankowski15274592017-12-12 15:52:37 -050070 - "-kv-port=2379"
71 ports:
72 - containerPort: 8882
73 name: rest-port
74 - containerPort: 8001
75 name: mystery-port
76 - containerPort: 8443
77 name: mystery2-port
78 - containerPort: 50555
79 name: grpc-port
80 imagePullPolicy: Never
81
82