blob: fe3f768bb4e44530d6606959974f1af7f0b3be9b [file] [log] [blame]
Andy Baviera40e82b2018-05-07 17:00:36 -07001---
2# 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 "vhss.fullname" . }}
20 labels:
21 app: {{ template "vhss.name" . }}
22 chart: {{ template "vhss.chart" . }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
25spec:
26 replicas: {{ .Values.replicaCount }}
27 selector:
28 matchLabels:
29 app: {{ template "vhss.name" . }}
30 release: {{ .Release.Name }}
31 template:
32 metadata:
33 labels:
34 app: {{ template "vhss.name" . }}
35 release: {{ .Release.Name }}
36 annotations:
37 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
38 spec:
39 containers:
40 - name: {{ .Chart.Name }}
41 image: {{ .Values.synchronizerImage | quote }}
42 imagePullPolicy: {{ .Values.imagePullPolicy }}
43 resources:
44{{ toYaml .Values.resources | indent 12 }}
45 volumeMounts:
46 - name: vhss-config
47 mountPath: /opt/xos/synchronizers/vhss/vhss_config.yaml
48 subPath: vhss_config.yaml
49 - name: certchain-volume
50 mountPath: /usr/local/share/ca-certificates/local_certs.crt
51 subPath: config/ca_cert_chain.pem
52 - name: vhss-keys
53 mountPath: /opt/xos/services/vhss/keys
54 readOnly: true
55 volumes:
56 - name: vhss-config
57 configMap:
58 name: vhss
59 items:
60 - key: serviceConfig
61 path: vhss_config.yaml
62 - name: certchain-volume
63 configMap:
64 name: ca-certificates
65 items:
66 - key: chain
67 path: config/ca_cert_chain.pem
68 - name: vhss-keys
69 secret:
70 secretName: vhss-keys
71 {{- with .Values.nodeSelector }}
72 nodeSelector:
73{{ toYaml . | indent 8 }}
74 {{- end }}
75 {{- with .Values.affinity }}
76 affinity:
77{{ toYaml . | indent 8 }}
78 {{- end }}
79 {{- with .Values.tolerations }}
80 tolerations:
81{{ toYaml . | indent 8 }}
82 {{- end }}