Merge DEPLOY-321 as part of REPO-3335

This commit is contained in:
Andrei Rebegea
2018-03-15 15:09:45 +02:00
parent a51ae460c0
commit d5524bce47
4 changed files with 31 additions and 7 deletions
@@ -3,8 +3,4 @@ dependencies:
- name: postgresql
version: 0.8.5
repository: https://kubernetes-charts.storage.googleapis.com/
condition: postgresql.enabled
- name: nginx-ingress
version: ^0.8.21
repository: https://kubernetes-charts.storage.googleapis.com
condition: alfresco-content-services.nginx-ingress.enabled
condition: postgresql.enabled
@@ -28,7 +28,15 @@ spec:
- containerPort: {{ .Values.repository.image.internalPort }}
resources:
{{ toYaml .Values.repository.resources | indent 12 }}
volumeMounts:
- name: data
mountPath: {{ .Values.persistence.repository.data.mountPath }}
subPath: {{ .Values.persistence.repository.data.subPath }}
initContainers:
- name: init-db
image: busybox
command: ['sh', '-c', 'until nc -w1 {{ template "database.hostname" . }} {{ template "database.port" . }}; do echo "waiting for {{ .Values.database.type }}"; sleep 2; done;']
volumes:
- name: data
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}
@@ -27,4 +27,12 @@ spec:
ports:
- containerPort: {{ .Values.solr.image.internalPort }}
resources:
{{ toYaml .Values.solr.resources | indent 12 }}
{{ toYaml .Values.solr.resources | indent 12 }}
volumeMounts:
- name: data
mountPath: {{ .Values.persistence.solr.data.mountPath }}
subPath: {{ .Values.persistence.solr.data.subPath }}
volumes:
- name: data
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}
+13 -1
View File
@@ -51,7 +51,7 @@ solr:
image:
repository: quay.io/alfresco/search-services
tag: "1.2.0-SNAPSHOT"
pullPolicy: IfNotPresent
pullPolicy: Always
internalPort: 8983
service:
name: solr
@@ -61,12 +61,24 @@ solr:
path: /solr
environment:
SOLR_CREATE_ALFRESCO_DEFAULTS: alfresco,archive
SOLR_OPTS: "-Dsolr.content.dir=/opt/alfresco-search-services/data/contentstore"
resources:
requests:
memory: "250Mi"
limits:
memory: "500Mi"
persistence:
existingClaim: "alfresco-volume-claim"
repository:
data:
mountPath: "/usr/local/tomcat/alf_data"
subPath: "alfresco-content-services/repository-data"
solr:
data:
mountPath: "/opt/alfresco-search-services/data"
subPath: "alfresco-content-services/solr-data"
database:
type: postgresql