Skip to content

Instantly share code, notes, and snippets.

@alksndrglk
Created December 12, 2022 10:00
Show Gist options
  • Select an option

  • Save alksndrglk/d07c87690bf1dbbcfcf82c3194ee69b5 to your computer and use it in GitHub Desktop.

Select an option

Save alksndrglk/d07c87690bf1dbbcfcf82c3194ee69b5 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1
kind: Job
metadata:
name: minio-event
spec:
template:
spec:
containers:
- name: minio-event-configuration
image: minio/mc
command: ["/bin/sh"]
args: ["-c", "/usr/bin/mc config host rm local;/usr/bin/mc config host add --quiet --api s3v4 local http://minio-service:9000 user password;/usr/bin/mc mb local/test-bucket/;/usr/bin/mc policy set public local/test-bucket/;"]
restartPolicy: Never
backoffLimit: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment