1 ################################################################################
2 # Copyright (c) 2020 Nordix Foundation. #
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 #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
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 ################################################################################
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 serviceName: {{ include "common.name" . }}
23 selector: {{- include "common.selectors" . | nindent 4 }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 hostname: {{ include "common.name" . }}
29 - name: fix-permission
33 - mkdir /var/information-coordinator-service/database;
34 chown -R 1000:1000 /var/information-coordinator-service;
36 imagePullPolicy: {{ .Values.imagePullPolicy }}
38 - name: {{ include "common.vardataMountName" . }}
39 mountPath: /var/information-coordinator-service
41 - name: {{ include "common.containername" . }}
42 image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
43 imagePullPolicy: {{ .Values.imagePullPolicy }}
44 ports: {{- include "common.containerPorts" . | nindent 8 }}
45 {{- include "common.tcpsocketReadinessProbe" . | nindent 8 }}
46 {{- include "common.httpLiveProbe" . | nindent 8 }}
48 - name: {{ include "common.applicationConfigMountName" . }}
49 mountPath: /opt/app/information-coordinator-service/config
50 - name: {{ include "common.vardataMountName" . }}
51 mountPath: /var/information-coordinator-service
52 volumes: {{- include "common.applicationConfigVolume" . | nindent 8 }}
54 volumeClaimTemplates: {{- include "common.vardataVolumeClaimTemplate" . | nindent 4 }}