blob: ed01549168a05d65b5eb12f62dee0be8fa1278ec [file] [log] [blame]
Andy Bavier9d9ee542018-03-19 13:31:28 -07001---
Andy Bavier9d9ee542018-03-19 13:31:28 -07002# Copyright 2018-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: apps/v1beta2
17kind: Deployment
18metadata:
19 name: {{ template "rcord-lite.fullname" . }}-rcord-models
20 labels:
21 app: {{ template "rcord-lite.name" . }}
22 chart: {{ template "rcord-lite.chart" . }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
25spec:
26 replicas: {{ .Values.replicaCount }}
27 selector:
28 matchLabels:
29 app: {{ template "rcord-lite.name" . }}
30 release: {{ .Release.Name }}
31 template:
32 metadata:
33 labels:
34 app: {{ template "rcord-lite.name" . }}
35 release: {{ .Release.Name }}
36 annotations:
37 checksum/config: {{ include (print $.Template.BasePath "/rcord-models-configmap.yaml") . | sha256sum }}
38 spec:
39 containers:
40 - name: {{ .Chart.Name }}-rcord
Zack Williams3432b942018-04-24 17:46:41 -070041 image: {{ .Values.rcord_synchronizerImage | quote }}
42 imagePullPolicy: {{ .Values.imagePullPolicy }}
Andy Bavier9d9ee542018-03-19 13:31:28 -070043 volumeMounts:
44 - name: rcord-lite-config
45 mountPath: /opt/xos/synchronizers/rcord/rcord_config.yaml
46 subPath: rcord_config.yaml
Zack Williams3432b942018-04-24 17:46:41 -070047 - name: certchain-volume
48 mountPath: /usr/local/share/ca-certificates/local_certs.crt
49 subPath: config/ca_cert_chain.pem
Andy Bavier9d9ee542018-03-19 13:31:28 -070050 volumes:
51 - name: rcord-lite-config
52 configMap:
53 name: rcord-lite-config
54 items:
55 - key: serviceConfig
56 path: rcord_config.yaml
Zack Williams3432b942018-04-24 17:46:41 -070057 - name: certchain-volume
58 configMap:
59 name: ca-certificates
60 items:
61 - key: chain
62 path: config/ca_cert_chain.pem