Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GKEでの並列ジョブ
apiVersion: batch/v1
kind: Job
metadata:
name: job-wq
spec:
# 並列実行数
parallelism: 3650
template:
metadata:
name: job-wq
spec:
containers:
- name: que-consumer
image: us.gcr.io/hoge/job-wq:latest
resources:
requests:
cpu: 1000m
memory: 2000Mi
env:
- name: BROKER_URL
value: amqp://guest:guest@rabbitmq-service:5672
- name: QUEUE
value: job1
volumeMounts:
- name: nfs
mountPath: /alldata
volumes:
- name: nfs
persistentVolumeClaim:
claimName: persistent-disk
readOnly: true
restartPolicy: OnFailure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.