Last active
March 31, 2020 05:10
-
-
Save Jeffwan/d1a688a5bb85b684eed079fcd5f2a54e to your computer and use it in GitHub Desktop.
elastic_job.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: elastic.pytorch.org/v1alpha1 | |
kind: ElasticJob | |
metadata: | |
name: imagenet | |
namespace: elastic-job | |
spec: | |
# Use "etcd-service:2379" if you already apply etcd.yaml | |
rdzvEndpoint: "etcd-service:2379" | |
minReplicas: 1 | |
maxReplicas: 5 | |
replicaSpecs: | |
Worker: | |
replicas: 2 | |
restartPolicy: ExitCode | |
template: | |
apiVersion: v1 | |
kind: Pod | |
spec: | |
containers: | |
- name: elasticjob-worker | |
image: seedjeffwan/examples:0.1.0rc1 | |
imagePullPolicy: Always | |
args: | |
- "s3://torchelastic-shjiaxin-1h71m-s3bucket-m1b9b9pjldqw/petctl/shjiaxin/imagenet-job/main.py" | |
- "--input_path" | |
- "/data/tiny-imagenet-200/train" | |
- "--epochs" | |
- "10" | |
resources: | |
limits: | |
nvidia.com/gpu: 1 |
Author
Jeffwan
commented
Mar 31, 2020
Why we delete pod and get event and reconcile it again? Did we miss the logic to handle terminating pods?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment