blob: 6ded1f9628a04072e960b1c9be1cc04b7eebee55 [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
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050051 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040052 cni: "calico"
Richard Jankowski15274592017-12-12 15:52:37 -050053 spec:
54 containers:
55 - name: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -050056 image: voltha-envoy
Richard Jankowski15274592017-12-12 15:52:37 -050057 env:
58 - name: POD_IP
59 valueFrom:
60 fieldRef:
61 fieldPath: status.podIP
62 - name: NAMESPACE
63 valueFrom:
64 fieldRef:
65 fieldPath: metadata.namespace
66 args:
67 - "/usr/local/bin/envoyd"
68 - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json"
69 - "-envoy-config=/envoy/voltha-grpc-proxy.json"
70 ports:
71 - containerPort: 8882
72 name: rest-port
73 - containerPort: 8001
74 name: mystery-port
75 - containerPort: 8443
76 name: mystery2-port
77 - containerPort: 50555
78 name: grpc-port
79 imagePullPolicy: Never
80
81