blob: 9bb7e6796eb44f9859dd0b4f1e6d9ee336edb91c [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
29 affinity:
30 podAntiAffinity:
31 requiredDuringSchedulingIgnoredDuringExecution:
32 - labelSelector:
33 matchExpressions:
34 - key: app
35 operator: In
36 values:
37 - netconf
38 topologyKey: kubernetes.io/hostname
39 containers:
40 - name: netconf
Richard Jankowskic3c291c2018-02-02 13:57:33 -050041 image: voltha-netconf
Richard Jankowskibbe1e092018-01-18 13:48:20 -050042 imagePullPolicy: Never
43 ports:
44 - containerPort: 830
45 env:
46 - name: NETCONF_PORT
47 value: "830"
48 args:
49 - "/netconf/netconf/main.py"
50 - "-v"
51 - "--consul=consul:8500"
Richard Jankowskibbe1e092018-01-18 13:48:20 -050052 - "--grpc-endpoint=voltha:50555"