Skip to content

Commit f0c0e51

Browse files
Add make target for custom-deploy
1 parent 64a712d commit f0c0e51

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ endif
115115
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
116116
$(KUSTOMIZE) build config/default | kubectl apply -f -
117117

118+
# custom-deploy can be used for building and pushing a custom image of InstaScale and deploying it on your K8s cluster for development.
119+
# Example: "make custom-deploy ENGINE=<podman or docker> IMG=quay.io/<username>/instascale:<image tag>"
120+
.PHONY: custom-deploy
121+
custom-deploy: image-build image-push install deploy
122+
118123
.PHONY: uninstall
119124
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
120125
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ Key features:
3232
- To build and release a docker image for controller : `make IMG=quay.io/project-codeflare/instascale:<TAG> image-build image-push`
3333
- Note that the other contents of the Makefile (as well as the `config` and `bin` dirs) exist for future operator development, and are not currently utilized
3434
## Deployment
35-
- Deploy InstaScale using: `make deploy`
35+
- Deploy InstaScale (latest) using: `make deploy`
36+
37+
- Optionally, to deploy a custom image of InstaScale you can use the `custom-deploy` make target to build, push, and deploy your image of InstaScale on your Kubernetes cluster:
38+
```
39+
make custom-deploy ENGINE=<podman or docker> IMG=quay.io/<username>/instascale:<image tag>
40+
```
41+
Note: This assumes you are logged into your quay.io account on your local machine, and your kubeconfig is pointing to the cluster you want to deploy InstaScale on.
3642

3743
## Running an InstaScale deployment locally with Visual Studio Code
3844
- Deploy MCAD using steps [here](https://github.com/project-codeflare/multi-cluster-app-dispatcher/blob/main/doc/deploy/deployment.md).

0 commit comments

Comments
 (0)