Skip to content
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

change instruction to deploy svm in multi-nic-cni-operator #159

Merged
merged 1 commit into from
Nov 9, 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
15 changes: 11 additions & 4 deletions health-check/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ kubectl create ns multi-nic-cni-operator
cd multi-nic-cni/health-check
chmod +x ./checker/script.sh
```
3. Run

3. Add `openshift.io/cluster-monitoring` label to multi-nic-cni-operator namespace

```bash
kubectl label ns multi-nic-cni-operator openshift.io/cluster-monitoring=true
```

4. Run

```bash
make deploy
Expand All @@ -40,7 +47,7 @@ kubectl create ns multi-nic-cni-operator
deployment.apps/multi-nic-cni-health-checker created
```

4. Check whether the health-checker and health-check-agent are running.
5. Check whether the health-checker and health-check-agent are running.

```bash
kubectl get po -n multi-nic-cni-operator
Expand All @@ -53,7 +60,7 @@ kubectl create ns multi-nic-cni-operator
multi-nic-cni-health-checker-zz 1/1 Running 0
```

5. Test status service with port forward
6. Test status service with port forward

```bash
# forward port on one terminal
Expand All @@ -79,7 +86,7 @@ kubectl create ns multi-nic-cni-operator
> {"Info":{"HostName":"hostD","Connectivity":{"192.168.0.0/18":false,"192.168.64.0/18":false},"Allocability":0,"StatusCode":...,"Status":...,"Message":...},"CheckTime":"...","Checker":"checkerX"}
```

6. Reload prometheus configuration
7. Reload prometheus configuration

For OpenShift cluster with prometheus operator deployed in openshift-monitoring,

Expand Down
4 changes: 2 additions & 2 deletions health-check/checker/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: multi-nic-cni-health-check
namespace: openshift-monitoring
namespace: multi-nic-cni-operator
spec:
endpoints:
- interval: 10s
Expand Down Expand Up @@ -160,7 +160,7 @@ metadata:
multi-nic-cni-component: health-checker
app: multi-nic-cni
name: multi-nic-cni-health-checker-rules
namespace: openshift-monitoring
namespace: multi-nic-cni-operator
spec:
groups:
- name: MultiNICFailure
Expand Down
Loading