Skip to content

Commit 6462870

Browse files
matttrachsusesamu
andauthored
fix: add deploy example of metrics operator (#1611)
Co-authored-by: Samuel Vasconcelos <samuel.vasconcelos@suse.com>
1 parent ee3d464 commit 6462870

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

docs/guides/apps_marketplace.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,59 @@ resource "rancher2_app_v2" "rancher-istio" {
189189
}
190190
```
191191

192+
* `prometheus-federator` - Deploy Prometheus Federator
193+
194+
```hcl
195+
resource "rancher2_app_v2" "prometheus-federator" {
196+
cluster_id = "<CLUSTER_ID>"
197+
name = "prometheus-federator"
198+
namespace = "cattle-monitoring-system"
199+
repo_name = "rancher-charts"
200+
chart_name = "prometheus-federator"
201+
chart_version = "104.0.2+up0.4.2"
202+
values = <<EOF
203+
global:
204+
cattle:
205+
clusterId: <CLUSTER_ID>
206+
projectLabel: field.cattle.io/projectId
207+
psp:
208+
enabled: false
209+
systemDefaultRegistry: registry.rancher.com
210+
systemProjectId: <PROJECT_ID>
211+
url: https://<NODE_IP>
212+
clusterName: custom
213+
rkePathPrefix: ''
214+
rkeWindowsPathPrefix: ''
215+
imagePullSecrets: []
216+
rbac:
217+
pspAnnotations: {}
218+
pspEnabled: true
219+
systemDefaultRegistry: registry.rancher.com
220+
EOF
221+
}
222+
223+
# About the variables of the values.yaml file
224+
#
225+
# CLUSTER_ID
226+
# When viewing a specific cluster in the Rancher UI, the cluster ID (formatted as c-xxxxx) is visible in the browser's URL bar
227+
# You can also get the ID through Rancher API:
228+
#
229+
# curl -s "https://${RANCHER_SERVER}/v3/clusters?name=${CLUSTER_NAME}" \
230+
# -H 'content-type: application/json' \
231+
# -H "Authorization: Bearer $APITOKEN" \
232+
# --insecure | jq -r .data[0].id
233+
#
234+
#
235+
# PROJECT_ID
236+
# Go to Cluster Management>Explore>Cluster>Projects/Namespaces
237+
# then go to the ellipsis button (three dots) to the right of the project name and select "View YAML."
238+
# In the displayed YAML, the metadata.name field contains the Rancher Project ID (formatted as p-xxxxx)
239+
#
240+
#
241+
# NODE_IP
242+
# It's the IPv4 address of your Rancher server
243+
```
244+
192245
* `rancher-cis-benchmark` - Deploy Rancher cis benchmark
193246

194247
```hcl

0 commit comments

Comments
 (0)