Skip to content

Commit

Permalink
Merge pull request #31 from kubeslice-ent/grafana-instruction
Browse files Browse the repository at this point in the history
Grafana instruction
  • Loading branch information
richiesebastian authored Aug 19, 2024
2 parents fd3a9e8 + 6340483 commit bdc2cdd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Before you begin, ensure the following steps are completed:

3. **Kubernetes Access:**
- Confirm that you have administrative access to the necessary Kubernetes clusters and the appropriate `kubeconfig` files are available.
-
---

### Installation Steps
Expand Down Expand Up @@ -57,20 +56,17 @@ Before you begin, ensure the following steps are completed:
3. **Modify the kubeslice-controller-egs Values:**
- Navigate to the configuration file where the `inline_values` are defined for `kubeslice-controller-egs`.
- Update the `endpoint` field under `kubeslice.controller` with the fetched `cluster_endpoint` value.

```yaml
inline_values: # Inline Helm values for the controller chart
kubeslice:
controller:
endpoint: "<controller_cluster_endpoint>" # Endpoint of the controller API server (MANDATORY)
```

- Replace `<controller_cluster_endpoint>` with the actual endpoint of your controller cluster.

4. **Modify the `kubeslice-worker-egs` Values:**
- Update the `kubeslice-worker-egs` configuration with the `kube cluster endpoint` or `apiserver endpoint` accessible from the `kubeslice-controller` cluster.
- Navigate to the configuration file where the `inline_values` are defined for `kubeslice-worker-egs`.

```yaml
inline_values: # Inline Helm values for the worker chart
cluster:
Expand All @@ -80,17 +76,37 @@ Before you begin, ensure the following steps are completed:
enabled: false # Disable Kubeslice networking for this worker
egs:
prometheusEndpoint: "http://prometheus-kube-prometheus-prometheus.monitoring.svc.cluster.local:9090" # Prometheus endpoint
grafanaDashboardBaseUrl: "http://grafana-test" # Grafana dashboard base URL
grafanaDashboardBaseUrl: http://<grafana-lb>/d/Oxed_c6Wz # Grafana dashboard base URL
metrics:
insecure: true # Allow insecure connections for metrics
```

6. **Run the Installation Script:**
5. **Run the Installation Script:**
- Execute the installation script using the following command:
```bash
./egs-installer.sh --input-yaml egs-installer-config.yaml
```

6. **Update the Worker Values with Grafana LB External IP:**
- Fetch the external IP using the following command:
```bash
kubectl get svc prometheus-kube-prometheus-prometheus -n monitoring
```
- Update the `kubeslice-worker-egs` configuration with the Grafana LB external IP:
```yaml
inline_values: # Inline Helm values for the worker chart
cluster:
name: worker-1 # Name of the worker cluster (MANDATORY)
endpoint: "<worker_cluster_endpoint>" # Kube cluster or API server endpoint accessible from the controller cluster (MANDATORY)
kubesliceNetworking:
enabled: false # Disable Kubeslice networking for this worker
egs:
prometheusEndpoint: "http://prometheus-kube-prometheus-prometheus.monitoring.svc.cluster.local:9090" # Prometheus endpoint
grafanaDashboardBaseUrl: http://<grafana-lb>/d/Oxed_c6Wz
metrics:
insecure: true # Allow insecure connections for metrics
```

---

## 🛠️ Configuration details
Expand Down
2 changes: 1 addition & 1 deletion egs-installer-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ kubeslice_worker_egs:
enabled: false # Disable Kubeslice networking for this worker
egs:
prometheusEndpoint: "http://prometheus-kube-prometheus-prometheus.monitoring.svc.cluster.local:9090" # Prometheus endpoint
grafanaDashboardBaseUrl: "http://grafana-test" # Grafana dashboard base URL
grafanaDashboardBaseUrl: "http://<grafana-lb>/d/Oxed_c6Wz" # Grafana dashboard base URL
metrics:
insecure: true # Allow insecure connections for metrics
helm_flags: "--atomic" # Additional Helm flags for the worker installation
Expand Down

0 comments on commit bdc2cdd

Please sign in to comment.