wraft-helm/templates/createbucket-job.yaml

24 lines
565 B
YAML
Raw Permalink Normal View History

2024-11-14 10:21:30 +00:00
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Release.Name }}-create-bucket
spec:
backoffLimit: 0
template:
spec:
containers:
- name: create-bucket
image: minio/mc:latest
command: ["/bin/sh", "-c"]
args:
- |
mc --help > /dev/null 2>&1 || {
apk add --no-cache mc
}
mc config host add myminio http://myproject-minio:9000 minioadmin minioadmin
mc mb -p myminio/wraft
mc policy set public myminio/wraft
exit 0
restartPolicy: Never