-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KEP-2170: Deploy JobSet in
kubeflow-system
namespace (#2388)
* KEP-2170: Deploy JobSet in kubeflow-system namespace Signed-off-by: Andrey Velichkevich <[email protected]> * Remove namespace from base Signed-off-by: Andrey Velichkevich <[email protected]> * Remove label from namespace Signed-off-by: Andrey Velichkevich <[email protected]> * Create third-party dir for JobSet Signed-off-by: Andrey Velichkevich <[email protected]> * Bump JobSet to v0.7.3 Signed-off-by: Andrey Velichkevich <[email protected]> * Drop namespace from JobSet config Signed-off-by: Andrey Velichkevich <[email protected]> --------- Signed-off-by: Andrey Velichkevich <[email protected]>
- Loading branch information
1 parent
6eeb1fb
commit ee1b691
Showing
13 changed files
with
55 additions
and
30 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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
resources: | ||
- manager.yaml | ||
# TODO (andreyvelich): Move it to overlays once we copy the JobSet manifests. | ||
namespace: kubeflow-system |
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
2 changes: 1 addition & 1 deletion
2
.../runtimes/pre-training/kustomization.yaml → ...e/runtimes/pretraining/kustomization.yaml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- torch-distributed.yaml | ||
- torch_distributed.yaml |
File renamed without changes.
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
11 changes: 9 additions & 2 deletions
11
.../overlays/only-manager/kustomization.yaml → ...ts/v2/overlays/manager/kustomization.yaml
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...overlays/only-runtimes/kustomization.yaml → ...s/v2/overlays/runtimes/kustomization.yaml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base/runtimes/pre-training | ||
- ../../base/runtimes/pretraining |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
apiVersion: config.jobset.x-k8s.io/v1alpha1 | ||
kind: Configuration |
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,18 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- https://github.com/kubernetes-sigs/jobset/releases/download/v0.7.3/manifests.yaml | ||
|
||
# Config for the JobSet manager. | ||
configMapGenerator: | ||
- name: jobset-manager-config | ||
files: | ||
- jobset_manager_config.yaml | ||
options: | ||
disableNameSuffixHash: true | ||
|
||
# Add required patches. | ||
patchesStrategicMerge: | ||
- patches/jobset_remove_namespace.yaml # Remove namespace from the JobSet release manifests. | ||
- patches/jobset_config_patch.yaml # Add custom manager config to the JobSet. |
21 changes: 21 additions & 0 deletions
21
manifests/v2/third-party/jobset/patches/jobset_config_patch.yaml
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,21 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: jobset-controller-manager | ||
namespace: jobset-system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
args: | ||
- "--config=/jobset_manager_config.yaml" | ||
volumeMounts: | ||
- name: jobset-manager-config | ||
mountPath: /jobset_manager_config.yaml | ||
subPath: jobset_manager_config.yaml | ||
readOnly: true | ||
volumes: | ||
- name: jobset-manager-config | ||
configMap: | ||
name: jobset-manager-config |
4 changes: 3 additions & 1 deletion
4
...sts/v2/overlays/standalone/namespace.yaml → ...bset/patches/jobset_remove_namespace.yaml
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
--- | ||
$patch: delete | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: kubeflow-system | ||
name: jobset-system |