blob: b15bc5c258c068e0f7056d070c5a8cbb5aa52a4b [file] [log] [blame]
Richard Jankowskibbe1e092018-01-18 13:48:20 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: netconf
Richard Jankowskid4454382018-02-08 16:21:43 -05005 namespace: voltha
Richard Jankowskibbe1e092018-01-18 13:48:20 -05006spec:
7 selector:
8 app: netconf
9 clusterIP: None
10 ports:
11 - port: 830
12 targetPort: 830
13---
14apiVersion: apps/v1beta1
15kind: Deployment
16metadata:
17 name: netconf
Richard Jankowskid4454382018-02-08 16:21:43 -050018 namespace: voltha
Richard Jankowskibbe1e092018-01-18 13:48:20 -050019spec:
20 replicas: 3
21 template:
22 metadata:
23 labels:
24 app: netconf
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040025 annotations:
26 cni: "calico"
Richard Jankowskibbe1e092018-01-18 13:48:20 -050027 spec:
28 terminationGracePeriodSeconds: 10
Richard Jankowskibbe1e092018-01-18 13:48:20 -050029 containers:
30 - name: netconf
Richard Jankowskic3c291c2018-02-02 13:57:33 -050031 image: voltha-netconf
Richard Jankowskibbe1e092018-01-18 13:48:20 -050032 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 Jankowskibbe1e092018-01-18 13:48:20 -050042 - "--grpc-endpoint=voltha:50555"