Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: voltha |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 5 | namespace: voltha |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 6 | labels: |
| 7 | name: voltha |
| 8 | spec: |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 9 | type: NodePort |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 10 | ports: |
| 11 | - name: rest |
| 12 | port: 8882 |
| 13 | targetPort: 8882 |
| 14 | - name: mystery |
| 15 | port: 8001 |
| 16 | targetPort: 8001 |
| 17 | - name: mystery2 |
| 18 | port: 8443 |
Richard Jankowski | 4ea2663 | 2018-05-14 17:45:38 -0400 | [diff] [blame] | 19 | nodePort: 32443 |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 20 | targetPort: 8443 |
| 21 | - name: grpc |
| 22 | port: 50555 |
| 23 | targetPort: 50555 |
| 24 | selector: |
| 25 | app: voltha |
| 26 | --- |
| 27 | apiVersion: apps/v1beta1 |
| 28 | kind: Deployment |
| 29 | metadata: |
| 30 | name: voltha |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 31 | namespace: voltha |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 32 | spec: |
| 33 | replicas: 1 |
| 34 | template: |
| 35 | metadata: |
| 36 | labels: |
| 37 | app: voltha |
Stephane Barbarie | 5e8d9e4 | 2018-02-07 16:15:05 -0500 | [diff] [blame] | 38 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 39 | cni: "calico" |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 40 | spec: |
| 41 | containers: |
| 42 | - name: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 43 | image: voltha-envoy |
Richard Jankowski | 1527459 | 2017-12-12 15:52:37 -0500 | [diff] [blame] | 44 | env: |
| 45 | - name: POD_IP |
| 46 | valueFrom: |
| 47 | fieldRef: |
| 48 | fieldPath: status.podIP |
| 49 | - name: NAMESPACE |
| 50 | valueFrom: |
| 51 | fieldRef: |
| 52 | fieldPath: metadata.namespace |
| 53 | args: |
| 54 | - "/usr/local/bin/envoyd" |
| 55 | - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json" |
| 56 | - "-envoy-config=/envoy/voltha-grpc-proxy.json" |
| 57 | ports: |
| 58 | - containerPort: 8882 |
| 59 | name: rest-port |
| 60 | - containerPort: 8001 |
| 61 | name: mystery-port |
| 62 | - containerPort: 8443 |
| 63 | name: mystery2-port |
| 64 | - containerPort: 50555 |
| 65 | name: grpc-port |
| 66 | imagePullPolicy: Never |
| 67 | |
| 68 | |