Zack Williams | c8c32e0 | 2018-11-04 14:43:21 -0700 | [diff] [blame] | 1 | --- |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 2 | # 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 | |
| 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
| 19 | name: netconf |
| 20 | namespace: {{ .Values.global.namespace }} |
| 21 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 22 | spec: |
| 23 | selector: |
| 24 | app: netconf |
| 25 | clusterIP: None |
| 26 | ports: |
Zack Williams | c8c32e0 | 2018-11-04 14:43:21 -0700 | [diff] [blame] | 27 | - port: 830 |
| 28 | targetPort: 830 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 29 | --- |
Matteo Scandolo | 5628d4b | 2021-01-11 11:46:12 -0800 | [diff] [blame] | 30 | apiVersion: apps/v1 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 31 | kind: Deployment |
| 32 | metadata: |
| 33 | name: netconf |
| 34 | namespace: {{ .Values.global.namespace }} |
| 35 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 36 | spec: |
Gopinath Taget | fff8934 | 2018-04-16 12:12:17 -0700 | [diff] [blame] | 37 | replicas: {{ .Values.replicas.netconf }} |
Matteo Scandolo | 5628d4b | 2021-01-11 11:46:12 -0800 | [diff] [blame] | 38 | selector: |
| 39 | matchLabels: |
| 40 | name: netconf |
| 41 | release: {{ .Release.Name }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 42 | template: |
| 43 | metadata: |
| 44 | labels: |
| 45 | app: netconf |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 46 | annotations: |
| 47 | cni: "calico" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 48 | spec: |
| 49 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 50 | terminationGracePeriodSeconds: 10 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 51 | containers: |
Zack Williams | c8c32e0 | 2018-11-04 14:43:21 -0700 | [diff] [blame] | 52 | - name: netconf |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 53 | image: {{ .Values.global.registry }}{{ .Values.images.netconf.repository }}:{{ tpl .Values.images.netconf.tag . }} |
| 54 | imagePullPolicy: {{ .Values.images.netconf.pullPolicy }} |
Zack Williams | c8c32e0 | 2018-11-04 14:43:21 -0700 | [diff] [blame] | 55 | 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 |