Richard Jankowski | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: netconf |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 5 | namespace: voltha |
Richard Jankowski | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 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 |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 18 | namespace: voltha |
Richard Jankowski | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 19 | spec: |
| 20 | replicas: 3 |
| 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 | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 27 | spec: |
| 28 | terminationGracePeriodSeconds: 10 |
Richard Jankowski | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 29 | containers: |
| 30 | - name: netconf |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 31 | image: voltha-netconf |
Richard Jankowski | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 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 | bbe1e09 | 2018-01-18 13:48:20 -0500 | [diff] [blame] | 42 | - "--grpc-endpoint=voltha:50555" |