blob: 8acf42bc52f737fefa7b44e98e54358fe75995fb [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.
William Kurkian1bedb412018-07-19 12:55:41 -040014
William Kurkianbde6fc92018-07-13 17:19:58 -040015apiVersion: v1
16kind: Service
17metadata:
18 name: ves
William Kurkian18ec3442018-09-10 16:27:37 -040019 namespace: default
William Kurkianbde6fc92018-07-13 17:19:58 -040020 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
William Kurkian18ec3442018-09-10 16:27:37 -040035 namespace: default
William Kurkianbde6fc92018-07-13 17:19:58 -040036spec:
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
William Kurkian1bedb412018-07-19 12:55:41 -040055
William Kurkianbde6fc92018-07-13 17:19:58 -040056 ports:
57 - containerPort: 8080
58 name: rest-port
William Kurkian1bedb412018-07-19 12:55:41 -040059 imagePullPolicy: Always