Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: netconf |
| 5 | namespace: voltha |
| 6 | spec: |
| 7 | selector: |
| 8 | app: netconf |
| 9 | clusterIP: None |
| 10 | ports: |
| 11 | - port: 830 |
| 12 | targetPort: 830 |
| 13 | --- |
| 14 | apiVersion: apps/v1beta1 |
| 15 | kind: Deployment |
| 16 | metadata: |
| 17 | name: netconf |
| 18 | namespace: voltha |
| 19 | spec: |
| 20 | replicas: 1 |
| 21 | template: |
| 22 | metadata: |
| 23 | labels: |
| 24 | app: netconf |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 25 | annotations: |
| 26 | cni: "calico" |
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 27 | spec: |
| 28 | terminationGracePeriodSeconds: 10 |
| 29 | containers: |
| 30 | - name: netconf |
| 31 | image: voltha-netconf |
| 32 | imagePullPolicy: Never |
| 33 | ports: |
| 34 | - containerPort: 830 |
| 35 | env: |
| 36 | - name: NETCONF_PORT |
| 37 | value: "830" |
| 38 | args: |
| 39 | - "/netconf/netconf/main.py" |
| 40 | - "-v" |
| 41 | - "--consul=consul:8500" |
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 42 | - "--grpc-endpoint=voltha:50555" |