mirror of
https://github.com/bitnami/charts.git
synced 2026-03-15 14:57:16 +08:00
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
{{- if or (.Values.configMap) (.Files.Glob "files/*") (.Values.cloneFilesFromGit.enabled) }}
|
|
{{- if .Values.entrypoint.file }}
|
|
The provided file {{ .Values.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 `configMap` option.
|
|
2. Putting your files in a `files` folder in the root of the Chart.
|
|
3. Cloning a Git repository with the `cloneFilesFromGit` option.
|
|
|
|
Examples for the different methods can be found in the README.
|
|
{{- end }}
|