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