William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 1 | # 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 Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame] | 14 | |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 15 | apiVersion: v1 |
| 16 | kind: Service |
| 17 | metadata: |
| 18 | name: ves |
William Kurkian | 18ec344 | 2018-09-10 16:27:37 -0400 | [diff] [blame] | 19 | namespace: default |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 20 | labels: |
| 21 | name: ves |
| 22 | spec: |
| 23 | type: NodePort |
| 24 | ports: |
| 25 | - name: rest |
| 26 | port: 8080 |
| 27 | nodePort: 32079 |
| 28 | selector: |
| 29 | app: ves |
| 30 | --- |
| 31 | apiVersion: apps/v1beta1 |
| 32 | kind: Deployment |
| 33 | metadata: |
| 34 | name: ves |
William Kurkian | 18ec344 | 2018-09-10 16:27:37 -0400 | [diff] [blame] | 35 | namespace: default |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 36 | spec: |
| 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 Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame] | 55 | |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 56 | ports: |
| 57 | - containerPort: 8080 |
| 58 | name: rest-port |
William Kurkian | 1bedb41 | 2018-07-19 12:55:41 -0400 | [diff] [blame] | 59 | imagePullPolicy: Always |