Files
helm-charts/apache-tika/templates/deployment.yaml
T
jklein 91a2fbcb05 Compute memory/ephemeral-storage limits from requests, drop default CPU limits
Every chart now renders its container resources through a duplicated
_helpers.tpl helper (reference implementation in template-chart): requests
ship as chart defaults, missing memory and ephemeral-storage limits are
computed as resources.limitFactor x the request (default 3, satisfactory
keeps 2 to preserve its previously published 8Gi limit), an explicitly set
limit always wins, and a CPU limit is only rendered when set explicitly.
Fixed limit defaults are removed from all values.yaml files; teamspeak-server
gains a values-driven resources block instead of hardcoded template values.
Major version bump for all published charts.
2026-08-21 23:34:09 +02:00

48 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-{{ .Chart.Name }}-deployment
labels:
app: {{ .Release.Name }}-{{ .Chart.Name }}-deployment
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-{{ .Chart.Name }}-deployment
template:
metadata:
name: {{ .Release.Name }}-{{ .Chart.Name }}-deployment
labels:
app: {{ .Release.Name }}-{{ .Chart.Name }}-deployment
spec:
automountServiceAccountToken: false
securityContext:
{{- toYaml .Values.tika.securityContext.pod | nindent 8 }}
containers:
- name: {{ .Release.Name }}-{{ .Chart.Name }}-deployment
image: "apache/tika:{{ .Chart.AppVersion }}"
imagePullPolicy: IfNotPresent
securityContext:
{{- toYaml .Values.tika.securityContext.container | nindent 12 }}
volumeMounts:
# Tika writes temporary files during parsing; with a read-only
# root filesystem /tmp must be a writable emptyDir.
- name: tmp
mountPath: /tmp
ports:
- containerPort: 9998
protocol: TCP
name: tika-port
livenessProbe:
{{- toYaml .Values.tika.livenessProbe | nindent 12 }}
readinessProbe:
{{- toYaml .Values.tika.readinessProbe | nindent 12 }}
startupProbe:
{{- toYaml .Values.tika.startupProbe | nindent 12 }}
resources:
{{- include "apache-tika.resources" .Values.tika.resources | nindent 12 }}
volumes:
- name: tmp
emptyDir: {}
restartPolicy: Always