blob: 756f73e2430d7afa10ec66038e6d41915dffd1dc [file] [log] [blame]
William Kurkianbde6fc92018-07-13 17:19:58 -04001# Copyright 2018- Cisco
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.
14 */
15apiVersion: v1
16kind: Service
17metadata:
18 name: ves
19 namespace: voltha
20 labels:
21 name: ves
22spec:
23 type: NodePort
24 ports:
25 - name: rest
26 port: 8080
27 nodePort: 32079
28 selector:
29 app: ves
30---
31apiVersion: apps/v1beta1
32kind: Deployment
33metadata:
34 name: ves
35 namespace: voltha
36spec:
37 replicas: 1
38 template:
39 metadata:
40 labels:
41 app: voltha
42 spec:
43 containers:
44 - name: voltha
45 image: docker-repo.dev.atl.foundry.att.com:5000/voltha-ves-agent:1
46 env:
47 - name: POD_IP
48 valueFrom:
49 fieldRef:
50 fieldPath: status.podIP
51 - name: NAMESPACE
52 valueFrom:
53 fieldRef:
54 fieldPath: metadata.namespace
55
56 ports:
57 - containerPort: 8080
58 name: rest-port
59 imagePullPolicy: IfNotPresent