mirror of
https://github.com/hanzo-ml/trainer.git
synced 2026-09-24 00:31:34 +00:00
Refine the server-side apply installation args (#2337)
Signed-off-by: Yuki Iwai <[email protected]>
This commit is contained in:
@@ -110,7 +110,7 @@ docker-push: ## Push docker image with the manager.
|
||||
##@ Deployment
|
||||
|
||||
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
|
||||
$(KUSTOMIZE) build manifests/base/crds | kubectl apply --server-side=true -f -
|
||||
$(KUSTOMIZE) build manifests/base/crds | kubectl apply --server-side -f -
|
||||
|
||||
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config.
|
||||
$(KUSTOMIZE) build manifests/base/crds | kubectl delete -f -
|
||||
|
||||
@@ -35,13 +35,13 @@ for the detailed instructions on how to install Training Operator.
|
||||
Run the following command to install the latest stable release of the Training Operator control plane: `v1.8.0`.
|
||||
|
||||
```bash
|
||||
kubectl apply --server-side=true -k "github.com/kubeflow/training-operator.git/manifests/overlays/standalone?ref=v1.8.0"
|
||||
kubectl apply --server-side -k "github.com/kubeflow/training-operator.git/manifests/overlays/standalone?ref=v1.8.0"
|
||||
```
|
||||
|
||||
Run the following command to install the latest changes of the Training Operator control plane:
|
||||
|
||||
```bash
|
||||
kubectl apply --server-side=true -k "github.com/kubeflow/training-operator/manifests/overlays/standalone"
|
||||
kubectl apply --server-side -k "github.com/kubeflow/training-operator/manifests/overlays/standalone"
|
||||
```
|
||||
|
||||
### Installing the Python SDK
|
||||
|
||||
@@ -27,7 +27,7 @@ cd manifests/overlays/standalone
|
||||
kustomize edit set image kubeflow/training-operator=${TRAINING_CI_IMAGE}
|
||||
|
||||
echo "Installing training operator manifests"
|
||||
kustomize build . | kubectl apply --server-side=true -f -
|
||||
kustomize build . | kubectl apply --server-side -f -
|
||||
|
||||
if [ "${GANG_SCHEDULER_NAME}" = "scheduler-plugins" ]; then
|
||||
SCHEDULER_PLUGINS_VERSION=$(go list -m -f "{{.Version}}" sigs.k8s.io/scheduler-plugins)
|
||||
|
||||
@@ -37,7 +37,7 @@ cd manifests/overlays/standalone
|
||||
kustomize edit set image kubeflow/training-operator=${REGISTRY}:${VERSION}
|
||||
|
||||
echo "Installing training operator manifests"
|
||||
kustomize build . | kubectl apply --server-side=true -f -
|
||||
kustomize build . | kubectl apply --server-side -f -
|
||||
|
||||
TIMEOUT=30
|
||||
until kubectl get pods -n kubeflow | grep training-operator | grep 1/1 || [[ $TIMEOUT -eq 1 ]]; do
|
||||
|
||||
Reference in New Issue
Block a user