blob: e3aff6a6d8e74a2b6ab2b0f5fd48fc8fcc5a6b12 [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---
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080030apiVersion: apps/v1
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070031kind: 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 }}
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080038 selector:
39 matchLabels:
40 name: netconf
41 release: {{ .Release.Name }}
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070042 template:
43 metadata:
44 labels:
45 app: netconf
Gopinath Taget7f357cf2018-07-03 12:34:38 -070046 annotations:
47 cni: "calico"
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070048 spec:
49 serviceAccountName: {{ .Values.global.namespace }}-serviceaccount
50 terminationGracePeriodSeconds: 10
Gopinath Tagete2dff4d2018-03-15 17:22:28 -070051 containers:
Zack Williamsc8c32e02018-11-04 14:43:21 -070052 - name: netconf
Zack Williams2749ae52018-09-28 09:43:43 -070053 image: {{ .Values.global.registry }}{{ .Values.images.netconf.repository }}:{{ tpl .Values.images.netconf.tag . }}
54 imagePullPolicy: {{ .Values.images.netconf.pullPolicy }}
Zack Williamsc8c32e02018-11-04 14:43:21 -070055 ports:
56 - containerPort: 830
57 env:
58 - name: NETCONF_PORT
59 value: "830"
60 args:
61{{ toYaml .Values.netconf_args | indent 12}}
62 volumeMounts:
63 - name: netconf-logconfig-vol
64 mountPath: /netconf/netconf/logconfig.yml
65 subPath: logconfig.yml
66 volumes:
67 - name: netconf-logconfig-vol
68 configMap:
69 name: netconf-logconfig
70 items:
71 - key: logconfig
72 path: logconfig.yml