Skip to content

perf: add liveness and readiness probes to deployments #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 2 additions & 3 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ spec:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
periodSeconds: 5
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
# TODO(user): Configure the resources accordingly based on the project requirements.
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
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
28 changes: 0 additions & 28 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.