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. |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 14 | apiVersion: v1 |
| 15 | kind: Service |
| 16 | metadata: |
| 17 | name: voltha |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 18 | namespace: voltha |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 19 | labels: |
| 20 | name: voltha |
| 21 | spec: |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 22 | type: NodePort |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 23 | 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 Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 32 | nodePort: 32443 |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 33 | targetPort: 8443 |
| 34 | - name: grpc |
| 35 | port: 50555 |
| 36 | targetPort: 50555 |
| 37 | selector: |
| 38 | app: voltha |
| 39 | --- |
| 40 | apiVersion: apps/v1beta1 |
| 41 | kind: Deployment |
| 42 | metadata: |
| 43 | name: voltha |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 44 | namespace: voltha |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 45 | spec: |
| 46 | replicas: 1 |
| 47 | template: |
| 48 | metadata: |
| 49 | labels: |
| 50 | app: voltha |
| 51 | spec: |
| 52 | containers: |
| 53 | - name: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 54 | image: voltha-envoy |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 55 | env: |
| 56 | - name: POD_IP |
| 57 | valueFrom: |
| 58 | fieldRef: |
| 59 | fieldPath: status.podIP |
| 60 | - name: NAMESPACE |
| 61 | valueFrom: |
| 62 | fieldRef: |
| 63 | fieldPath: metadata.namespace |
| 64 | args: |
| 65 | - "/usr/local/bin/envoyd" |
| 66 | - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json" |
| 67 | - "-envoy-config=/envoy/voltha-grpc-proxy.json" |
| 68 | - "-kv=etcd" |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 69 | - "-kv-svc-name=etcd.$(NAMESPACE).svc.cluster.local" |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 70 | - "-kv-port=2379" |
| 71 | ports: |
| 72 | - containerPort: 8882 |
| 73 | name: rest-port |
| 74 | - containerPort: 8001 |
| 75 | name: mystery-port |
| 76 | - containerPort: 8443 |
| 77 | name: mystery2-port |
| 78 | - containerPort: 50555 |
| 79 | name: grpc-port |
| 80 | imagePullPolicy: Never |
| 81 | |
| 82 | |