Skip to content

Commit

Permalink
refactor: removal of deployment dir, and updating the readme to use m…
Browse files Browse the repository at this point in the history
…ake deploy cmd
  • Loading branch information
dimakis committed Aug 28, 2023
1 parent 06bc587 commit db3b69e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 155 deletions.
23 changes: 3 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,11 @@ Key features:
- To build and release a docker image for controller : `make IMG=quay.io/project-codeflare/instascale:<TAG> docker-build docker-push`
- 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
## Deployment
- Deploy MCAD using steps [here](https://github.com/project-codeflare/multi-cluster-app-dispatcher/blob/main/doc/deploy/deployment.md).
- Deploy InstaScale using commands below:
```
git clone https://github.com/project-codeflare/instascale.git
cd deployment/
oc apply -f instascale-configmap.yaml
oc apply -f instascale-sa.yaml
oc apply -f instascale-clusterrole.yaml
oc apply -f instascale-clusterrolebinding.yaml
oc apply -f deployment.yaml
```
- Deploy InstaScale using: `make deploy`

## Running an InstaScale deployment locally with Visual Studio Code
- Deploy MCAD using steps [here](https://github.com/project-codeflare/multi-cluster-app-dispatcher/blob/main/doc/deploy/deployment.md).
- Deploy InstaScale by following the steps below:
```
git clone https://github.com/project-codeflare/instascale.git
cd deployment/
oc apply -f instascale-configmap.yaml
oc apply -f instascale-sa.yaml
oc apply -f instascale-clusterrole.yaml
oc apply -f instascale-clusterrolebinding.yaml
```

- In Visual Studio Code update `.vscode/launch.json` so that `"KUBECONFIG"` points to your Kubernetes config file.<br>
- If you changed the namespace in `instascale-configmap.yaml` update the `args[]` in `launch.json` to include `--configs-namespace="<YOUR_NAMESPACE>"`.<br>
- You can now run the local deployment with the debugger.
Expand Down
15 changes: 15 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,18 @@ rules:
- get
- patch
- update
- apiGroups:
- ""
resourceNames:
- instascale-ocm-secret
resources:
- secrets
verbs:
- get
- apiGroups:
- config.openshift.io
resources:
- clusterversions
verbs:
- get
- update
39 changes: 0 additions & 39 deletions deployment/deployment.yaml

This file was deleted.

70 changes: 0 additions & 70 deletions deployment/instascale-clusterrole.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions deployment/instascale-clusterrolebinding.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions deployment/instascale-configmap.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions deployment/instascale-sa.yaml

This file was deleted.

0 comments on commit db3b69e

Please sign in to comment.