Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 1 | --- |
| 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 | |
| 16 | apiVersion: apps/v1beta2 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: {{ template "simpleexampleservice.fullname" . }} |
| 20 | labels: |
| 21 | app: {{ template "simpleexampleservice.name" . }} |
| 22 | chart: {{ template "simpleexampleservice.chart" . }} |
| 23 | release: {{ .Release.Name }} |
| 24 | heritage: {{ .Release.Service }} |
| 25 | spec: |
| 26 | replicas: {{ .Values.replicaCount }} |
| 27 | selector: |
| 28 | matchLabels: |
| 29 | app: {{ template "simpleexampleservice.name" . }} |
| 30 | release: {{ .Release.Name }} |
| 31 | template: |
| 32 | metadata: |
| 33 | labels: |
| 34 | app: {{ template "simpleexampleservice.name" . }} |
| 35 | release: {{ .Release.Name }} |
| 36 | spec: |
| 37 | containers: |
| 38 | - name: {{ .Chart.Name }} |
Zack Williams | d9d6b35 | 2018-10-05 07:53:30 -0700 | [diff] [blame] | 39 | image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }} |
| 40 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 41 | resources: |
| 42 | {{ toYaml .Values.resources | indent 12 }} |
| 43 | volumeMounts: |
| 44 | - name: simpleexampleservice-config |
Scott Baker | ee29b94 | 2019-02-08 09:46:02 -0800 | [diff] [blame] | 45 | mountPath: /opt/xos/synchronizers/simpleexampleservice/config.yaml |
| 46 | subPath: config.yaml |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 47 | - name: certchain-volume |
| 48 | mountPath: /usr/local/share/ca-certificates/local_certs.crt |
| 49 | subPath: config/ca_cert_chain.pem |
| 50 | volumes: |
| 51 | - name: simpleexampleservice-config |
| 52 | configMap: |
| 53 | name: simpleexampleservice |
| 54 | items: |
| 55 | - key: serviceConfig |
Scott Baker | ee29b94 | 2019-02-08 09:46:02 -0800 | [diff] [blame] | 56 | path: config.yaml |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 57 | - name: certchain-volume |
| 58 | configMap: |
| 59 | name: ca-certificates |
| 60 | items: |
| 61 | - key: chain |
| 62 | path: config/ca_cert_chain.pem |
| 63 | {{- with .Values.nodeSelector }} |
| 64 | nodeSelector: |
| 65 | {{ toYaml . | indent 8 }} |
| 66 | {{- end }} |
| 67 | {{- with .Values.affinity }} |
| 68 | affinity: |
| 69 | {{ toYaml . | indent 8 }} |
| 70 | {{- end }} |
| 71 | {{- with .Values.tolerations }} |
| 72 | tolerations: |
| 73 | {{ toYaml . | indent 8 }} |
| 74 | {{- end }} |