You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NAME JOINED AGE MEMBER-AGENT-LAST-SEEN NODE-COUNT AVAILABLE-CPU AVAILABLE-MEMORY
62
+
kind-cluster-1 True 40s 29s 0 0 0
63
+
kind-cluster-2 True 40s 3s 0 0 0
64
+
kind-cluster-3 True 40s 37s 0 0 0
65
+
```
66
+
Wait until all member clusters show as joined.
59
67
60
-
The sample metric application image will be automatically built and loaded to all member clusters when you run the `install-on-member.sh` script in Step 5 below. This ensures the `metric-app:local` image is available on each cluster before propagating the deployment from hub to member clusters.
68
+
### 3. Deploy Prometheus
61
69
62
-
After the metric collector is installed (Step 5), deploy the sample application that exposes health metrics:
70
+
Create the prometheus namespace and deploy Prometheus for metrics collection:
This creates a deployment in the `test-ns` namespace with Prometheus annotations for metric scraping. When this deployment is propagated to member clusters via ClusterResourcePlacement, the image will already be available locally.
80
+
This deploys Prometheus configured to scrape pods from all namespaces with the proper annotations.
Install the approval request controller on the hub cluster:
97
+
98
+
```bash
77
99
# Run the installation script
78
100
./install-on-hub.sh
79
101
```
@@ -85,12 +107,22 @@ The script performs the following:
85
107
4. Installs the controller via Helm with the custom CRDs (MetricCollector, MetricCollectorReport, WorkloadTracker)
86
108
5. Verifies the installation
87
109
88
-
### 5. Install Metric Collector (Member Clusters)
110
+
### 6. Configure Workload Tracker
111
+
112
+
Apply the WorkloadTracker to define which workloads to monitor:
113
+
114
+
```bash
115
+
kubectl apply -f ./examples/workloadtracker/
116
+
```
117
+
118
+
This tells the approval controller which workloads to track and what health thresholds to use.
119
+
120
+
### 7. Install Metric Collector (Member Clusters)
89
121
90
-
On each member cluster, install the metric collector. The installation script will automatically build and load both the metric-collector and metric-app images to all specified member clusters:
122
+
Install the metric collector on all member clusters:
91
123
92
124
```bash
93
-
cd standalone-metric-collector
125
+
cd../standalone-metric-collector
94
126
95
127
# Run the installation script for all member clusters
96
128
# This builds both metric-collector and metric-app images and loads them into each cluster
@@ -106,32 +138,129 @@ The script performs the following for each member cluster:
106
138
107
139
The `metric-app:local` image is pre-loaded so it's available when you propagate the sample-metric-app deployment from hub to member clusters.
108
140
141
+
### 8. Create Staged Update
142
+
143
+
Switch back to hub cluster and create a staged update run:
0 commit comments