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 |
| 35 | spec: |
| 36 | containers: |
| 37 | - name: voltha |
| 38 | image: "voltha/envoy:latest" |
| 39 | env: |
| 40 | - name: POD_IP |
| 41 | valueFrom: |
| 42 | fieldRef: |
| 43 | fieldPath: status.podIP |
| 44 | - name: NAMESPACE |
| 45 | valueFrom: |
| 46 | fieldRef: |
| 47 | fieldPath: metadata.namespace |
| 48 | args: |
| 49 | - "/usr/local/bin/envoyd" |
| 50 | - "-envoy-cfg-template=/envoy/voltha-grpc-proxy.template.json" |
| 51 | - "-envoy-config=/envoy/voltha-grpc-proxy.json" |
| 52 | - "-kv=etcd" |
| 53 | - "-kv-svc-name=etcd" |
| 54 | - "-kv-port=2379" |
| 55 | ports: |
| 56 | - containerPort: 8882 |
| 57 | name: rest-port |
| 58 | - containerPort: 8001 |
| 59 | name: mystery-port |
| 60 | - containerPort: 8443 |
| 61 | name: mystery2-port |
| 62 | - containerPort: 50555 |
| 63 | name: grpc-port |
| 64 | imagePullPolicy: Never |
| 65 | |
| 66 | |