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 | ||||
25 | spec: | ||||
26 | terminationGracePeriodSeconds: 10 | ||||
27 | containers: | ||||
28 | - name: netconf | ||||
29 | image: voltha-netconf | ||||
30 | imagePullPolicy: Never | ||||
31 | ports: | ||||
32 | - containerPort: 830 | ||||
33 | env: | ||||
34 | - name: NETCONF_PORT | ||||
35 | value: "830" | ||||
36 | args: | ||||
37 | - "/netconf/netconf/main.py" | ||||
38 | - "-v" | ||||
39 | - "--consul=consul:8500" | ||||
Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 40 | - "--grpc-endpoint=voltha:50555" |