Skip to content

Commit

Permalink
OPSEXP-2293: add AI pipelines as configmap (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz authored Jan 3, 2024
1 parent 36648f0 commit 0ce7051
Show file tree
Hide file tree
Showing 5 changed files with 500 additions and 38 deletions.
2 changes: 1 addition & 1 deletion charts/alfresco-ai-transformer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: alfresco-ai-transformer
description: A Helm chart for deploying Alfresco ai transformer service
type: application
version: 1.0.0-alpha.2
version: 1.0.0-alpha.3
appVersion: 3.0.1
dependencies:
- name: alfresco-common
Expand Down
10 changes: 9 additions & 1 deletion charts/alfresco-ai-transformer/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# alfresco-ai-transformer

![Version: 1.0.0-alpha.2](https://img.shields.io/badge/Version-1.0.0--alpha.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.1](https://img.shields.io/badge/AppVersion-3.0.1-informational?style=flat-square)
![Version: 1.0.0-alpha.3](https://img.shields.io/badge/Version-1.0.0--alpha.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.1](https://img.shields.io/badge/AppVersion-3.0.1-informational?style=flat-square)

A Helm chart for deploying Alfresco ai transformer service

Expand All @@ -15,6 +15,8 @@ A Helm chart for deploying Alfresco ai transformer service

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | string | `"podAntiAffinity:\n preferredDuringSchedulingIgnoredDuringExecution:\n - weight: 10\n podAffinityTerm:\n labelSelector:\n matchExpressions:\n - key: app.kubernetes.io/name\n operator: In\n values:\n - {{ template \"alfresco-ai-transformer.name\" $ }}\n - key: app.kubernetes.io/instance\n operator: In\n values:\n - {{ $.Release.Name }}\n topologyKey: topology.kubernetes.io/zone"` | string representation of the YAML affinity rules (can use templates) |
| args | list | `[]` | |
| aws.accessKeyId | string | `nil` | AWS credentials are required as documented at https://docs.alfresco.com/intelligence-services/latest/config/#default-configuration |
| aws.comprehendRoleARN | string | `nil` | |
| aws.existingConfigMap.keys.comprehendRoleARN | string | `"AWS_COMPREHEND_ROLE_ARN"` | |
Expand All @@ -27,7 +29,11 @@ A Helm chart for deploying Alfresco ai transformer service
| aws.region | string | `nil` | |
| aws.s3Bucket | string | `nil` | |
| aws.secretAccessKey | string | `nil` | |
| command | list | `[]` | |
| environment.JAVA_OPTS | string | `"-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"` | |
| extraInitContainers | list | `[]` | |
| extraVolumeMounts | list | `[]` | |
| extraVolumes | list | `[]` | |
| global.alfrescoRegistryPullSecrets | string | `"quay-registry-secret"` | |
| image.internalPort | int | `8090` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
Expand Down Expand Up @@ -69,6 +75,8 @@ A Helm chart for deploying Alfresco ai transformer service
| strategy.rollingUpdate.maxSurge | int | `1` | |
| strategy.rollingUpdate.maxUnavailable | int | `0` | |
| tags.ci | bool | `false` | A chart tag used for Hyland's CI purpose. Do not set it to true. |
| tolerations | list | `[]` | |
| trouter.pipelines | list | See | List of transformer pipelines the ATS router can advertise when using AI To get more details abous pipeline configuration check https://docs.alfresco.com/transform-service/latest/config/#transform-pipelines https://github.com/Alfresco/alfresco-ai-renditions/blob/master/ai-renditions/docker-compose/ai-pipeline-routes.json |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
{{- $cmCtx := dict "Values" (dict "nameOverride" "ai-pipelines") "Chart" .Chart "Release" .Release }}
name: {{ template "alfresco-ai-transformer.fullname" $cmCtx }}
labels:
{{- include "alfresco-ai-transformer.labels" . | nindent 4 }}
data:
ai-pipeline-routes.json: >-
{{- dict "transformers" .Values.trouter.pipelines | toJson | nindent 4 }}
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,7 @@ spec:
spec:
serviceAccountName: {{ include "alfresco-ai-transformer.serviceAccountName" . }}
{{- include "alfresco-common.component-pod-security-context" .Values | indent 4 }}
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- include "alfresco-common.imagePullSecrets" . | indent 6 }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 10
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ template "alfresco-ai-transformer.name" . }}
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: failure-domain.beta.kubernetes.io/zone
- weight: 5
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ template "alfresco-ai-transformer.name" . }}
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: failure-domain.beta.kubernetes.io/zone
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down Expand Up @@ -119,8 +87,11 @@ spec:
key: {{ .Values.aws.existingConfigMap.keys.comprehendRoleARN }}

ports:
- containerPort: {{ .Values.image.internalPort }}
resources: {{- toYaml .Values.resources | nindent 12 }}
- containerPort: {{ .Values.image.internalPort }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
readinessProbe:
httpGet:
path: /ready
Expand All @@ -136,3 +107,27 @@ spec:
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
failureThreshold: 1
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
{{- if .Values.command }}
command:
{{- toYaml .Values.command | nindent 12 }}
{{- end }}
{{- if .Values.args }}
args:
{{- toYaml .Values.args | nindent 12 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
initContainers:
{{- toYaml .Values.extraInitContainers | nindent 8 }}
volumes:
{{- toYaml .Values.extraVolumes | nindent 8 }}
Loading

0 comments on commit 0ce7051

Please sign in to comment.