mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
{{- if or (.Values.pytorch.configMap) (.Files.Glob "files/*") (.Values.pytorch.cloneFilesFromGit.enabled) }}
|
|
{{- if .Values.pytorch.entrypoint.file }}
|
|
Your file {{ .Values.pytorch.entrypoint.file }} is being executed. You can see the logs of each running node with:
|
|
kubectl logs [POD_NAME]
|
|
|
|
and the list of pods:
|
|
kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "pytorch.name" . }},app.kubernetes.io/instance={{ .Release.Name }}"
|
|
{{- else }}
|
|
You didn't specify any entrypoint to your code.
|
|
To run it, you can either deploy again using the `pytorch.entrypoint.file` option to specify your entrypoint, or execute it manually by jumping into the pods:
|
|
|
|
1. Get the running pods
|
|
kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "pytorch.name" . }},app.kubernetes.io/instance={{ .Release.Name }}"
|
|
|
|
2. Get into a pod
|
|
kubectl exec -ti [POD_NAME] bash
|
|
|
|
3. Execute your script as you would normally do.
|
|
{{- end }}
|
|
{{- else }}
|
|
You haven't loaded any file. This chart allows three different methods to load your files:
|
|
|
|
1. Load the files from an existing ConfigMap, using the `pytorch.configMap` option.
|
|
2. Putting your files in a `files` folder in the root of the Chart.
|
|
3. Cloning a Git repository with the `pytorch.cloneFilesFromGit` option.
|
|
{{- end }}
|