--- {{- if .Values.alamedaExecutor.enabled }} apiVersion: apps/v1 kind: Deployment metadata: annotations: {{- if .Values.global.commonAnnotations }} {{- include "render-value" ( dict "value" .Values.global.commonAnnotations "context" .) | nindent 4 }} {{- end }} labels: {{- if .Values.global.commonLabels }} {{- include "render-value" ( dict "value" .Values.global.commonLabels "context" .) | nindent 4 }} {{- end }} app.kubernetes.io/part-of: federatorai app: alameda component: alameda-executor name: alameda-executor namespace: {{ .Release.Namespace }} spec: replicas: 1 selector: matchLabels: app: alameda component: alameda-executor strategy: type: Recreate template: metadata: annotations: {{- if .Values.global.podAnnotations }} {{- include "render-value" ( dict "value" .Values.global.podAnnotations "context" .) | nindent 8 }} {{- end }} labels: {{- if .Values.global.podLabels }} {{- include "render-value" ( dict "value" .Values.global.podLabels "context" .) | nindent 8 }} {{- end }} app.kubernetes.io/part-of: federatorai app: alameda component: alameda-executor spec: affinity: {{- if .Values.alamedaExecutor.affinity }} {{- include "render-value" ( dict "value" .Values.alamedaExecutor.affinity "context" .) | nindent 8 }} {{- end }} containers: - env: - name: NAMESPACE_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: FEDERATORAI_MAXIMUM_LOG_SIZE value: "1932735283" {{- if .Values.alamedaExecutor.image }} image: {{ .Values.alamedaExecutor.image }} {{- else }} image: {{ .Values.global.imageRegistry }}/alameda-executor-ubi:{{ .Values.global.imageTag }} {{- end }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} livenessProbe: exec: command: - /usr/local/bin/federatorai-executor - probe - --type=liveness failureThreshold: 3 initialDelaySeconds: 5 periodSeconds: 60 successThreshold: 1 timeoutSeconds: 5 name: alameda-executor readinessProbe: exec: command: - /usr/local/bin/federatorai-executor - probe - --type=readiness failureThreshold: 3 initialDelaySeconds: 5 periodSeconds: 60 successThreshold: 1 timeoutSeconds: 5 resources: {{- if .Values.global.resourcesLimitsEnabled }} limits: {{- include "render-value" ( dict "value" .Values.alamedaExecutor.resources.limits "context" .) | nindent 14 }} {{- end }} {{- if .Values.global.resourcesRequestsEnabled }} requests: {{- include "render-value" ( dict "value" .Values.alamedaExecutor.resources.requests "context" .) | nindent 14 }} {{- end }} volumeMounts: - mountPath: /var/log/alameda name: alameda-executor-log-storage - mountPath: /etc/alameda/federatorai-execution/config.toml name: alameda-executor-config subPath: config.toml imagePullSecrets: {{- if .Values.global.imagePullSecrets }} {{ include "render-value" ( dict "value" .Values.global.imagePullSecrets "context" .) | nindent 8 }} {{- end }} securityContext: fsGroup: 1001 {{- if .Values.alamedaExecutor.podSecurityContext }} {{- include "render-value" ( dict "value" .Values.alamedaExecutor.podSecurityContext "context" .) | nindent 8 }} {{- end }} serviceAccount: alameda-executor serviceAccountName: alameda-executor tolerations: {{- if .Values.alamedaExecutor.tolerations }} {{- include "render-value" ( dict "value" .Values.alamedaExecutor.tolerations "context" .) | nindent 6 }} {{- end }} volumes: - emptyDir: {} name: alameda-executor-data-storage - name: alameda-executor-log-storage persistentVolumeClaim: claimName: alameda-executor-log.pvc - configMap: defaultMode: 420 name: alameda-executor-config name: alameda-executor-config {{- end }}