Files
2024-06-03 00:35:39 +09:00

22 lines
642 B
Plaintext

apiVersion: batch/v1
kind: Job
metadata:
name: s3-echoer
spec:
template:
spec:
serviceAccountName: irsa1-sa
containers:
- name: main
image: amazonlinux:2023
command:
- "sh"
- "-c"
- "curl -sL -o /s3-echoer https://github.com/kkb0318/s3-echoer-arm/releases/latest/download/s3-echoer-linux-arm64 && chmod +x /s3-echoer && echo This is an in-cluster test | /s3-echoer TARGET_BUCKET"
env:
- name: AWS_DEFAULT_REGION
value: "ap-northeast-1"
- name: ENABLE_IRP
value: "true"
restartPolicy: Never