forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run MLprojects on kubernetes (mlflow#1181)
* initial setup and job yaml file creation * first tests on kuberntes * refactory and tests * adds kubernetes mode to cli * adds to env vars Azure vars if exits in local host * fix tag setup and parameters in kubernetes call * encapsulates run command logic in function * adds Job monitoring in command line * lint * remove kube context from MLproject file * refactor MLproject and new tests * validates docker_auth_config and kube_context in cli * Add docs * add example * lint and tests for kubernetes config * lint on tests * lint tests * add kubernetes in requirements.txt and lint tests * lint and tests env * lint and requirements * merge, loggin and lint * remove unused import * change image_namespace in dockeMLproject docker example * add resources attributes in MLproject ability to pass k8s job template * improve docs on k8s resources in MLprojects Ability to pass relative job-template file * lint on tests * remove docker auth parameter from CLI * refatores image tag * lint * change mode to backend * change mode to backend * update to use backend_config * update to backend_config * change username in image_url * lint and add base-image to kubernetes_config.json * lint * absolut_import to handle kubernetes modlue import conflict * lint * docs * remove kubernetes_env in project_spec and var names in cli * fix container command format * return docker_env usage in kubernetes backend * lint * lint _logger.info * update kubernetes docs and fix docker docs * docker project validation * docker image tagging scheme * tests for docker_env validation, backend tag and other issues * handles errors pushing docker images * docs typo, remove kubernetes from setup * remove code to add azure blob storage keys in job definition file * lint * load of kube-job-template-path * refactory to add KubernetesSubmittedRun * lint * add KubernetesSubmittedRun and tests * lint tests * lint * Some changes * lint and fixes * fix tests validating docker env * remove the streaming of the logs * Updated logic for checking of kubernetes job status. * Fixed tests. * Added a test for state transitions of kubernetes run. * Minor update. * docs * backend tag rename * remove rstcheck from lint-requirements * correct project env tag * rstcheck in lint-requiremtns.txt * handles environment variables in job template when it already has variables specified * Simplified state monitoring of Kubernetes Submitted Run.
- Loading branch information
1 parent
b0836f8
commit 5dcb226
Showing
17 changed files
with
648 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ nose | |
codecov | ||
coverage | ||
pypi-publisher | ||
scikit-learn | ||
scipy | ||
kubernetes |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"kube-context": "docker-for-desktop", | ||
"kube-job-template-path": "examples/docker/kubernetes_job_template.yaml", | ||
"image-uri": "username/mlflow-kubernetes-example" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: "" | ||
namespace: mlflow | ||
spec: | ||
ttlSecondsAfterFinished: 100 | ||
backoffLimit: 0 | ||
template: | ||
spec: | ||
containers: | ||
- name: "name" | ||
image: "image" | ||
command: ["cmd"] | ||
resources: | ||
limits: | ||
memory: 512Mi | ||
requests: | ||
memory: 256Mi | ||
restartPolicy: Never |
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
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
Oops, something went wrong.