Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # 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. |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 14 | apiVersion: v1 |
| 15 | kind: Service |
| 16 | metadata: |
| 17 | name: onos |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 18 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 19 | labels: |
| 20 | name: onos |
| 21 | spec: |
| 22 | ports: |
| 23 | - name: ssh |
| 24 | port: 8101 |
| 25 | targetPort: 8101 |
| 26 | - name: of |
| 27 | port: 6653 |
| 28 | targetPort: 6653 |
| 29 | - name: ui |
| 30 | port: 8181 |
| 31 | targetPort: 8181 |
| 32 | selector: |
| 33 | app: onos |
| 34 | --- |
| 35 | apiVersion: apps/v1beta1 |
| 36 | kind: Deployment |
| 37 | metadata: |
| 38 | name: onos |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 39 | namespace: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 40 | spec: |
| 41 | replicas: 1 |
| 42 | template: |
| 43 | metadata: |
| 44 | labels: |
| 45 | app: onos |
| 46 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 47 | cni: "calico" |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 48 | spec: |
| 49 | containers: |
| 50 | - name: onos |
| 51 | image: "voltha-onos:latest" |
| 52 | env: |
| 53 | - name: POD_IP |
| 54 | valueFrom: |
| 55 | fieldRef: |
| 56 | fieldPath: status.podIP |
| 57 | - name: NAMESPACE |
| 58 | valueFrom: |
| 59 | fieldRef: |
| 60 | fieldPath: metadata.namespace |
| 61 | - name: ONOS_APPS |
| 62 | value: "drivers,openflow-base" |
| 63 | ports: |
| 64 | - containerPort: 8101 |
| 65 | name: ssh-port |
| 66 | - containerPort: 6653 |
| 67 | name: of-port |
| 68 | - containerPort: 8181 |
| 69 | name: ui-port |
| 70 | imagePullPolicy: Never |