blob: d5d434345fbf43ee18663913051320b27662ddb5 [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
25 spec:
26 terminationGracePeriodSeconds: 10
27 affinity:
28 podAntiAffinity:
29 requiredDuringSchedulingIgnoredDuringExecution:
30 - labelSelector:
31 matchExpressions:
32 - key: app
33 operator: In
34 values:
35 - netconf
36 topologyKey: kubernetes.io/hostname
37 containers:
38 - name: netconf
Richard Jankowskic3c291c2018-02-02 13:57:33 -050039 image: voltha-netconf
Richard Jankowskibbe1e092018-01-18 13:48:20 -050040 imagePullPolicy: Never
41 ports:
42 - containerPort: 830
43 env:
44 - name: NETCONF_PORT
45 value: "830"
46 args:
47 - "/netconf/netconf/main.py"
48 - "-v"
49 - "--consul=consul:8500"
50 - "--fluentd=fluentd:24224"
51 - "--grpc-endpoint=voltha:50555"