Files
billisdead fc931e4707 feat(helm): add Temporal support and expand env coverage for v2.21.8
- Chart.yaml: bump to version 1.1.0, appVersion v2.21.8
- values.yaml: add temporal section (enabled/address/namespace/tls/apiKey/postgresql),
  expand env (~40 non-sensitive vars) and secrets (~60 sensitive vars) to match
  current Postiz documentation — covers all social providers, email SMTP,
  OAuth OIDC, AI/generation, analytics, MCP, payments, short-link services
- postiz-config.yaml: inject TEMPORAL_ADDRESS (auto-computed or override),
  TEMPORAL_NAMESPACE and TEMPORAL_TLS when temporal.enabled or address is set
- temporal-deployment.yaml: temporalio/auto-setup:1.28.1, postgres12 backend,
  ES disabled, dynamicconfig volume mount, liveness/readiness probes
- temporal-service.yaml: ClusterIP on port 7233 (gRPC)
- temporal-dynamicconfig.yaml: ConfigMap with development-sql.yaml content
- temporal-init-job.yaml: post-install/upgrade Job that creates the temporal
  PostgreSQL user via the postgres superuser before Temporal starts
- temporal-secret.yaml: Secret for temporal PostgreSQL credentials
- NOTES.txt: post-install guidance, search-attribute creation reminder,
  multi-replica/local-storage warning, backup reminder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 17:53:18 +02:00

69 lines
2.3 KiB
YAML

{{- if .Values.temporal.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "postiz.fullname" . }}-temporal
labels:
{{- include "postiz.labels" . | nindent 4 }}
app.kubernetes.io/component: temporal
spec:
replicas: 1
selector:
matchLabels:
{{- include "postiz.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: temporal
template:
metadata:
labels:
{{- include "postiz.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: temporal
spec:
containers:
- name: temporal
image: "{{ .Values.temporal.image.repository }}:{{ .Values.temporal.image.tag }}"
imagePullPolicy: {{ .Values.temporal.image.pullPolicy }}
ports:
- name: grpc
containerPort: 7233
protocol: TCP
env:
- name: DB
value: "postgres12"
- name: DB_PORT
value: "5432"
- name: POSTGRES_USER
value: {{ .Values.temporal.postgresql.user | quote }}
- name: POSTGRES_PWD
valueFrom:
secretKeyRef:
name: {{ include "postiz.fullname" . }}-temporal-secret
key: POSTGRES_PWD
- name: POSTGRES_SEEDS
value: {{ default (printf "%s-postgresql" .Release.Name) .Values.temporal.postgresql.seeds | quote }}
- name: DYNAMIC_CONFIG_FILE_PATH
value: "config/dynamicconfig/development-sql.yaml"
- name: ENABLE_ES
value: "false"
- name: TEMPORAL_NAMESPACE
value: {{ .Values.temporal.namespace | default "default" | quote }}
volumeMounts:
- name: dynamicconfig
mountPath: /etc/temporal/config/dynamicconfig
livenessProbe:
tcpSocket:
port: grpc
initialDelaySeconds: 30
periodSeconds: 15
failureThreshold: 5
readinessProbe:
tcpSocket:
port: grpc
initialDelaySeconds: 15
periodSeconds: 10
failureThreshold: 5
volumes:
- name: dynamicconfig
configMap:
name: {{ include "postiz.fullname" . }}-temporal-dynamicconfig
{{- end }}