I've created a cluster on Google Kubernetes Engine :
gcloud container clusters create training-cluster --num-nodes=1 --zone=us-central1-a --machine-type="n1-highmem-2" --scopes="gke-default,storage-rw"
I get the credentials:
gcloud container clusters get-credentials --zone us-central1-a training-cluster
and apply my yaml file:
kubectl apply -f pod.yaml
The yaml file looks like:
apiVersion: v1
kind: Pod
metadata:
name: gke-training-pod
spec:
containers:
- name: my-custom-container
image: gcr.io/xyz/object-classification:gpu
args:
{I put my container arguments here}
I can see in the logs that training starts and eventually reaches the end. Problem is that it restarts each time unless I delete my cluster. Is there an argument that I should add to avoid such a behavior?