blob: 93e77424aecd572dda3d148cac297131d16682dd [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Richard Jankowskibbe1e092018-01-18 13:48:20 -050014apiVersion: v1
15kind: Service
16metadata:
17 name: netconf
Richard Jankowskid4454382018-02-08 16:21:43 -050018 namespace: voltha
Richard Jankowskibbe1e092018-01-18 13:48:20 -050019spec:
20 selector:
21 app: netconf
22 clusterIP: None
23 ports:
24 - port: 830
25 targetPort: 830
26---
27apiVersion: apps/v1beta1
28kind: Deployment
29metadata:
30 name: netconf
Richard Jankowskid4454382018-02-08 16:21:43 -050031 namespace: voltha
Richard Jankowskibbe1e092018-01-18 13:48:20 -050032spec:
33 replicas: 3
34 template:
35 metadata:
36 labels:
37 app: netconf
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040038 annotations:
39 cni: "calico"
Richard Jankowskibbe1e092018-01-18 13:48:20 -050040 spec:
41 terminationGracePeriodSeconds: 10
Richard Jankowskibbe1e092018-01-18 13:48:20 -050042 containers:
43 - name: netconf
Richard Jankowskic3c291c2018-02-02 13:57:33 -050044 image: voltha-netconf
Richard Jankowskibbe1e092018-01-18 13:48:20 -050045 imagePullPolicy: Never
46 ports:
47 - containerPort: 830
48 env:
49 - name: NETCONF_PORT
50 value: "830"
51 args:
52 - "/netconf/netconf/main.py"
53 - "-v"
54 - "--consul=consul:8500"
Richard Jankowskibbe1e092018-01-18 13:48:20 -050055 - "--grpc-endpoint=voltha:50555"