blob: 5d999bad204a3fd53caba8a70616a61929daaa25 [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
37 image: "cord/netconf:latest"
38 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"