44 lines
1.6 KiB
YAML
44 lines
1.6 KiB
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: postiz-temporal-namespace-1-1-1-1
|
|
labels:
|
|
app.kubernetes.io/component: database
|
|
app.kubernetes.io/name: temporal
|
|
helm.sh/chart: temporal-1.1.1
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/instance: postiz
|
|
app.kubernetes.io/version: "1.30.3"
|
|
app.kubernetes.io/part-of: temporal
|
|
spec:
|
|
backoffLimit: 100
|
|
ttlSecondsAfterFinished: 86400
|
|
template:
|
|
metadata:
|
|
name: postiz-temporal-namespace-1-1-1-1
|
|
labels:
|
|
app.kubernetes.io/component: database
|
|
app.kubernetes.io/name: temporal
|
|
helm.sh/chart: temporal-1.1.1
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/instance: postiz
|
|
app.kubernetes.io/version: "1.30.3"
|
|
app.kubernetes.io/part-of: temporal
|
|
spec:
|
|
serviceAccountName: default
|
|
restartPolicy: OnFailure
|
|
initContainers:
|
|
- name: create-default-namespace
|
|
image: "temporalio/admin-tools:1.30.4@sha256:9ac15d500f4020f7cc694ecc17085dfcfc2d4b1d0d2020dbe83b6f3d49e156e0"
|
|
imagePullPolicy: IfNotPresent
|
|
command: ['/bin/sh', '-c']
|
|
args: ['temporal operator namespace describe -n default || temporal operator namespace create -n default --retention 30d']
|
|
env:
|
|
- name: TEMPORAL_ADDRESS
|
|
value: "postiz-temporal-frontend.postiz.svc:7233"
|
|
containers:
|
|
- name: done
|
|
image: "temporalio/admin-tools:1.30.4@sha256:9ac15d500f4020f7cc694ecc17085dfcfc2d4b1d0d2020dbe83b6f3d49e156e0"
|
|
imagePullPolicy: IfNotPresent
|
|
command: ['sh', '-c', 'echo "Namespace setup completed"']
|