Skip to content

Instantly share code, notes, and snippets.

@balajismaniam
Created July 17, 2018 21:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save balajismaniam/941db0d0ec14e2bc93b7dfe04d1f6c58 to your computer and use it in GitHub Desktop.
Save balajismaniam/941db0d0ec14e2bc93b7dfe04d1f6c58 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: tf-wide-deep-census-pod
spec:
containers:
- image: <insert-image>
command: ["/bin/sh"]
args: ["-c", "/usr/bin/time python ./wide_deep.py --model_type=wide_deep --train_epochs=500 --epochs_between_eval=500 --batch_size=32561"]
name: tf-wide-deep-census
resources:
requests:
cpu: <insert-cpu-request>
memory: 32Gi
limits:
cpu: <insert-cpu-limit>
memory: 32Gi
restartPolicy: "Never"
---
apiVersion: v1
kind: Pod
metadata:
name: tf-resnet-cifar-pod
spec:
containers:
- image: <insert-image>
command: ["/bin/sh"]
args: ["-c", "/usr/bin/time python ./cifar10_main.py --resnet_size=50 --train_epochs=3 --batch_size=1000 --epochs_between_evals=3 --num_parallel_calls=24"]
name: tf-resnet-cifar
resources:
requests:
cpu: <insert-cpu-request>
memory: 128Gi
limits:
cpu: <insert-cpu-limit>
memory: 128Gi
restartPolicy: "Never"
@Chenhait
Copy link

hi, I want to test the static pod in k8s. However, I don not know

  • image:

thank you very much if any advance!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment