Skip to content

Instantly share code, notes, and snippets.

@takuya-andou
Created October 29, 2019 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuya-andou/69bc82f5dbf4d39ed2875c0f64b2c2c5 to your computer and use it in GitHub Desktop.
Save takuya-andou/69bc82f5dbf4d39ed2875c0f64b2c2c5 to your computer and use it in GitHub Desktop.
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