blob: 125e3e1c20e74facf9f04446a051aea06ff0982c [file] [log] [blame]
Richard Jankowskibbe1e092018-01-18 13:48:20 -05001apiVersion: v1
2kind: Service
3metadata:
4 name: netconf
5spec:
6 selector:
7 app: netconf
8 clusterIP: None
9 ports:
10 - port: 830
11 targetPort: 830
12---
13apiVersion: apps/v1beta1
14kind: Deployment
15metadata:
16 name: netconf
17spec:
18 replicas: 3
19 template:
20 metadata:
21 labels:
22 app: netconf
23 spec:
24 terminationGracePeriodSeconds: 10
25 affinity:
26 podAntiAffinity:
27 requiredDuringSchedulingIgnoredDuringExecution:
28 - labelSelector:
29 matchExpressions:
30 - key: app
31 operator: In
32 values:
33 - netconf
34 topologyKey: kubernetes.io/hostname
35 containers:
36 - name: netconf
Richard Jankowskic3c291c2018-02-02 13:57:33 -050037 image: voltha-netconf
Richard Jankowskibbe1e092018-01-18 13:48:20 -050038 imagePullPolicy: Never
39 ports:
40 - containerPort: 830
41 env:
42 - name: NETCONF_PORT
43 value: "830"
44 args:
45 - "/netconf/netconf/main.py"
46 - "-v"
47 - "--consul=consul:8500"
48 - "--fluentd=fluentd:24224"
49 - "--grpc-endpoint=voltha:50555"