Skip to content

Commit

Permalink
Seperate NodeSelector values per pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Mieszko96 committed Mar 21, 2022
1 parent dd97dd1 commit 11d8bd8
Show file tree
Hide file tree
Showing 21 changed files with 64 additions and 35 deletions.
23 changes: 15 additions & 8 deletions helm/alfresco-content-services/README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions helm/alfresco-content-services/charts/activemq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ A Helm chart Providing Apache ActiveMQ.
| livenessProbe.initialDelaySeconds | int | `130` | |
| livenessProbe.periodSeconds | int | `20` | |
| livenessProbe.timeoutSeconds | int | `10` | |
| nodeSelector | object | `{}` | |
| persistence.chownWithDynamicProvisioning | bool | `false` | |
| persistence.existingClaim | string | `"alfresco-volume-claim"` | |
| persistence.mountPath | string | `"/opt/activemq/data"` | |
Expand Down
2 changes: 1 addition & 1 deletion helm/alfresco-content-services/charts/activemq/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Leave this to true to deploy the chart
enabled: true
replicaCount: 1
nodeSelector: {}
image:
repository: alfresco/alfresco-activemq
tag: 5.16.1
Expand Down Expand Up @@ -55,7 +56,6 @@ livenessProbe:
periodSeconds: 20
timeoutSeconds: 10
failureThreshold: 1

persistence:
existingClaim: "alfresco-volume-claim"
mountPath: "/opt/activemq/data"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ A Helm chart for deploying Alfresco Search
| livenessProbe.initialDelaySeconds | int | `130` | |
| livenessProbe.periodSeconds | int | `20` | |
| livenessProbe.timeoutSeconds | int | `10` | |
| nodeSelector | object | `{}` | |
| persistence | object | `{"EbsPvConfiguration":{"fsType":"ext4"},"VolumeSizeRequest":"10Gi","chownWithDynamicProvisioning":false,"enabled":true,"search":{"data":{"mountPath":"/opt/alfresco-search-services/data","subPath":"alfresco-content-services/solr-data"}}}` | Defines the mounting points for the persistence required by the apps in the cluster the solr data folder containing the indexes for the alfresco-search-services is mapped to alfresco-content-services/solr-data |
| persistence.VolumeSizeRequest | string | `"10Gi"` | Only define if you have a specific claim already created existingClaim: "search-master-claim" |
| readinessProbe.initialDelaySeconds | int | `60` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ spec:
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
- name: {{ .Values.global.alfrescoRegistryPullSecrets }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# -- Define the alfresco-search properties to use in the k8s cluster
# This is the search provider used by alfresco-content-repository
replicaCount: 1
nodeSelector: {}
# -- Define the type of Alfresco Search to use. The default is Alfresco Search Services.
# The type can be set to use Insight Engine with --set alfresco-search.type="insight-engine",alfresco-search.global.alfrescoRegistryPullSecrets="quay-registry-secret",alfresco-insight-zeppelin.enabled="true"
# As the Docker Image for Insight Engine is not publicly available the alfrescoRegistryPullSecrets has to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Alfresco Sync Service
| initContainers.postgres.image.tag | string | `"1.33.1"` | |
| initContainers.postgres.resources.limits.memory | string | `"10Mi"` | |
| initContainers.postgres.resources.requests.memory | string | `"5Mi"` | |
| nodeSelector | object | `{}` | |
| postgresql-syncservice.enabled | bool | `true` | |
| postgresql-syncservice.image.pullPolicy | string | `"IfNotPresent"` | |
| postgresql-syncservice.image.tag | string | `"11.7.0"` | |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
replicaCount: 1
nodeSelector: {}

# -- Global definition of Docker registry pull secret which can be overridden from parent ACS Helm chart(s)
global:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ spec:
labels:
{{- include "ai-transformer.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.aiTransformer.nodeSelector }}
nodeSelector: {{- .Values.aiTransformer.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ spec:
labels:
{{- include "filestore.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.filestore.nodeSelector }}
nodeSelector: {{- .Values.filestore.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ spec:
labels:
{{- include "imagemagick.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.imagemagick.nodeSelector }}
nodeSelector: {{- .Values.imagemagick.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ spec:
labels:
{{- include "libreoffice.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.libreoffice.nodeSelector }}
nodeSelector: {{- .Values.libreoffice.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ spec:
labels:
{{- include "ms-teams-service.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.msTeamsService.nodeSelector }}
nodeSelector: {{- .Values.msTeamsService.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ spec:
labels:
{{- include "ooi-service.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.ooi.nodeSelector }}
nodeSelector: {{- .Values.ooi.odeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ spec:
labels:
{{- include "pdfrenderer.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.pdfrenderer.nodeSelector }}
nodeSelector: {{- .Values.pdfrenderer.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ spec:
labels:
{{- include "repository.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.repository.nodeSelector }}
nodeSelector: {{- .Values.repository.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ spec:
labels:
{{- include "share.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.share.nodeSelector }}
nodeSelector: {{- .Values.share.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
4 changes: 2 additions & 2 deletions helm/alfresco-content-services/templates/deployment-tika.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ spec:
labels:
{{- include "tika.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.tika.nodeSelector }}
nodeSelector: {{- .Values.tika.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ spec:
labels:
{{- include "transform-misc.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.transformmisc.nodeSelector }}
nodeSelector: {{- .Values.transformmisc.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ spec:
labels:
{{- include "transform-router.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- if .Values.transformrouter.nodeSelector }}
nodeSelector: {{- .Values.transformrouter.nodeSelector | toYaml | nindent 8 }}
{{- end }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
19 changes: 18 additions & 1 deletion helm/alfresco-content-services/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ repository:
adminPassword: "209c6174da490caeb422f3fa5a7ae634"
edition: Enterprise
replicaCount: 2
nodeSelector: {}
strategy:
type: Recreate
image:
Expand Down Expand Up @@ -187,6 +188,7 @@ msTeamsService:

transformrouter:
replicaCount: 2
nodeSelector: {}
image:
repository: quay.io/alfresco/alfresco-transform-router
tag: 1.5.2
Expand Down Expand Up @@ -216,6 +218,7 @@ transformrouter:
# to transform pdf files
pdfrenderer:
replicaCount: 2
nodeSelector: {}
image:
repository: alfresco/alfresco-pdf-renderer
tag: 2.5.7
Expand Down Expand Up @@ -249,6 +252,7 @@ pdfrenderer:
# to transform image files
imagemagick:
replicaCount: 2
nodeSelector: {}
image:
repository: alfresco/alfresco-imagemagick
tag: 2.5.7
Expand Down Expand Up @@ -282,6 +286,7 @@ imagemagick:
# to transform office files
libreoffice:
replicaCount: 2
nodeSelector: {}
image:
repository: alfresco/alfresco-libreoffice
tag: 2.5.7
Expand Down Expand Up @@ -315,6 +320,7 @@ libreoffice:
# to transform office files
tika:
replicaCount: 2
nodeSelector: {}
image:
repository: alfresco/alfresco-tika
tag: 2.5.7
Expand Down Expand Up @@ -349,6 +355,7 @@ tika:
transformmisc:
enabled: true
replicaCount: 2
nodeSelector: {}
image:
repository: alfresco/alfresco-transform-misc
tag: 2.5.7
Expand Down Expand Up @@ -413,6 +420,7 @@ aiTransformer:
# and transform service
filestore:
replicaCount: 1
nodeSelector: {}
image:
repository: quay.io/alfresco/alfresco-shared-file-store
tag: 0.16.1
Expand Down Expand Up @@ -456,6 +464,7 @@ filestore:
# This is the default presentation layer(UI) of Alfresco Content Services
share:
replicaCount: 1
nodeSelector: {}
image:
repository: quay.io/alfresco/alfresco-share
tag: 7.2.0-A28
Expand Down Expand Up @@ -528,9 +537,11 @@ persistence:
subPath: "alfresco-content-services/filestore-data"

activemq:
enabled: true
enabled: true
nodeSelector: {}

alfresco-search:
nodeSelector: {}
type: "search-services"
enabled: true
# If enabled is set to false, then external host and port need to point to the external instance of SOLR6, and in this case:
Expand Down Expand Up @@ -568,6 +579,7 @@ alfresco-search:
# - chart-example.local

alfresco-digital-workspace:
nodeSelector: {}
enabled: true
nameOverride: "alfresco-dw"
service:
Expand Down Expand Up @@ -645,6 +657,8 @@ postgresql:
postgresqlExtendedConf:
max_connections: 300
log_min_messages: LOG
primary:
nodeSelector: {}
persistence:
existingClaim: "alfresco-volume-claim"
subPath: "alfresco-content-services/database-data"
Expand Down Expand Up @@ -674,6 +688,8 @@ postgresql-syncservice:
log_min_messages: LOG
service:
port: 5432
primary:
nodeSelector: {}
resources:
requests:
memory: "1500Mi"
Expand Down Expand Up @@ -790,6 +806,7 @@ metadataKeystore:
defaultKeyPassword: "oKIWzVdEdA"

alfresco-sync-service:
nodeSelector: {}
syncservice:
enabled : true
image:
Expand Down

0 comments on commit 11d8bd8

Please sign in to comment.