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 | --- |
| 30 | apiVersion: apps/v1beta1 |
| 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 }} |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 38 | template: |
| 39 | metadata: |
| 40 | labels: |
| 41 | app: netconf |
Gopinath Taget | 7f357cf | 2018-07-03 12:34:38 -0700 | [diff] [blame] | 42 | annotations: |
| 43 | cni: "calico" |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 44 | spec: |
| 45 | serviceAccountName: {{ .Values.global.namespace }}-serviceaccount |
| 46 | terminationGracePeriodSeconds: 10 |
Gopinath Taget | e2dff4d | 2018-03-15 17:22:28 -0700 | [diff] [blame] | 47 | containers: |
Zack Williams | c8c32e0 | 2018-11-04 14:43:21 -0700 | [diff] [blame] | 48 | - 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 |