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