blob: 52989b878c2fb1e31ea51321d76e1baf33e8f08e [file] [log] [blame]
Zack Williamsc8c32e02018-11-04 14:43:21 -07001---
Gopinath Tagete2dff4d2018-03-15 17:22:28 -07002# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16apiVersion: v1
17kind: Service
18metadata:
19 name: netconf
20 namespace: {{ .Values.global.namespace }}
21 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
22spec:
23 selector:
24 app: netconf
25 clusterIP: None
26 ports:
Zack Williamsc8c32e02018-11-04 14:43:21 -070027 - port: 830
28 targetPort: 830
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070029---
30apiVersion: apps/v1beta1
31kind: Deployment
32metadata:
33 name: netconf
34 namespace: {{ .Values.global.namespace }}
35 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
36spec:
Gopinath Tagetfff89342018-04-16 12:12:17 -070037 replicas: {{ .Values.replicas.netconf }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070038 template:
39 metadata:
40 labels:
41 app: netconf
Gopinath Taget7f357cf2018-07-03 12:34:38 -070042 annotations:
43 cni: "calico"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070044 spec:
45 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
46 terminationGracePeriodSeconds: 10
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070047 containers:
Zack Williamsc8c32e02018-11-04 14:43:21 -070048 - name: netconf
49 image: {{ .Values.netconfImage }}
50 imagePullPolicy: {{ .Values.imagePullPolicy }}
51 ports:
52 - containerPort: 830
53 env:
54 - name: NETCONF_PORT
55 value: "830"
56 args:
57{{ toYaml .Values.netconf_args | indent 12}}
58 volumeMounts:
59 - name: netconf-logconfig-vol
60 mountPath: /netconf/netconf/logconfig.yml
61 subPath: logconfig.yml
62 volumes:
63 - name: netconf-logconfig-vol
64 configMap:
65 name: netconf-logconfig
66 items:
67 - key: logconfig
68 path: logconfig.yml