-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPSEXP-2525 alfresco-transform-service introduce optional hpa (#261)
- Loading branch information
Showing
14 changed files
with
797 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
charts/alfresco-transform-service/templates/hpa-imagemagick.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ if and .Values.imagemagick.enabled .Values.imagemagick.autoscaling.enabled }} | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ template "alfresco-transform-service.imagemagick.name" . }} | ||
labels: {{- include "alfresco-transform-service.imagemagick.labels" . | nindent 4 }} | ||
spec: | ||
minReplicas: {{ .Values.imagemagick.autoscaling.minReplicas }} | ||
maxReplicas: {{ .Values.imagemagick.autoscaling.maxReplicas }} | ||
behavior: {{ toYaml .Values.imagemagick.autoscaling.behavior | nindent 4 }} | ||
metrics: {{ toYaml .Values.imagemagick.autoscaling.metrics | nindent 4 }} | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ template "alfresco-transform-service.imagemagick.name" . }} | ||
{{ end }} |
16 changes: 16 additions & 0 deletions
16
charts/alfresco-transform-service/templates/hpa-libreoffice.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ if and .Values.libreoffice.enabled .Values.libreoffice.autoscaling.enabled }} | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ template "alfresco-transform-service.libreoffice.name" . }} | ||
labels: {{- include "alfresco-transform-service.libreoffice.labels" . | nindent 4 }} | ||
spec: | ||
minReplicas: {{ .Values.libreoffice.autoscaling.minReplicas }} | ||
maxReplicas: {{ .Values.libreoffice.autoscaling.maxReplicas }} | ||
behavior: {{ toYaml .Values.libreoffice.autoscaling.behavior | nindent 4 }} | ||
metrics: {{ toYaml .Values.libreoffice.autoscaling.metrics | nindent 4 }} | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ template "alfresco-transform-service.libreoffice.name" . }} | ||
{{ end }} |
16 changes: 16 additions & 0 deletions
16
charts/alfresco-transform-service/templates/hpa-pdfrenderer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ if and .Values.pdfrenderer.enabled .Values.pdfrenderer.autoscaling.enabled }} | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ template "alfresco-transform-service.pdfrenderer.name" . }} | ||
labels: {{- include "alfresco-transform-service.pdfrenderer.labels" . | nindent 4 }} | ||
spec: | ||
minReplicas: {{ .Values.pdfrenderer.autoscaling.minReplicas }} | ||
maxReplicas: {{ .Values.pdfrenderer.autoscaling.maxReplicas }} | ||
behavior: {{ toYaml .Values.pdfrenderer.autoscaling.behavior | nindent 4 }} | ||
metrics: {{ toYaml .Values.pdfrenderer.autoscaling.metrics | nindent 4 }} | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ template "alfresco-transform-service.pdfrenderer.name" . }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ if and .Values.tika.enabled .Values.tika.autoscaling.enabled }} | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ template "alfresco-transform-service.tika.name" . }} | ||
labels: {{- include "alfresco-transform-service.tika.labels" . | nindent 4 }} | ||
spec: | ||
minReplicas: {{ .Values.tika.autoscaling.minReplicas }} | ||
maxReplicas: {{ .Values.tika.autoscaling.maxReplicas }} | ||
behavior: {{ toYaml .Values.tika.autoscaling.behavior | nindent 4 }} | ||
metrics: {{ toYaml .Values.tika.autoscaling.metrics | nindent 4 }} | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ template "alfresco-transform-service.tika.name" . }} | ||
{{ end }} |
16 changes: 16 additions & 0 deletions
16
charts/alfresco-transform-service/templates/hpa-transform-misc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ if and .Values.transformmisc.enabled .Values.transformmisc.autoscaling.enabled }} | ||
apiVersion: autoscaling/v2 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ template "alfresco-transform-service.transform-misc.name" . }} | ||
labels: {{- include "alfresco-transform-service.transform-misc.labels" . | nindent 4 }} | ||
spec: | ||
minReplicas: {{ .Values.transformmisc.autoscaling.minReplicas }} | ||
maxReplicas: {{ .Values.transformmisc.autoscaling.maxReplicas }} | ||
behavior: {{ toYaml .Values.transformmisc.autoscaling.behavior | nindent 4 }} | ||
metrics: {{ toYaml .Values.transformmisc.autoscaling.metrics | nindent 4 }} | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ template "alfresco-transform-service.transform-misc.name" . }} | ||
{{ end }} |
Oops, something went wrong.