This message was deleted.
# general
a
This message was deleted.
s
This is a vanilla IaC approach. If you are all inn on Rancher you may prefer the built-in ecosystem. Check out Fleet, the
rancher
cli util etc. I have deployed monitoring using this resource: https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/app_v2 I have also tried to do an upgrade through bumping the chart version, worked like a charm. I am programmatically listing charts using this approach:
Copy code
% helm repo list --output json | jq '.[] | select(.name == "rancher-charts")'
{
  "name": "rancher-charts",
  "url": "<https://charts.rancher.io/>"
}

% helm search repo rancher-charts/rancher-monitoring --versions

# Also wise to verify that k8s and Rancher version is within compatible range:
% helm show chart rancher-charts/rancher-monitoring | grep 'catalog.cattle.io/kube-version\|catalog.cattle.io/rancher-version'
g
@strong-action-64019 Thanks for the reply. OK so you're using terraform to install the rancher-monitoring helm charts into your Rancher cluster. Sounds like we can just use
helm
to install to rancher-monitoring helm charts to get the same functionality as installing the "Monitoring" plugin via the Rancher UI.
s
Well, actually. I think that the Rancher software actually downloads some kind of package and generates a helm chart that then is installed on the target cluster - if I remember correctly. The outcome is however very similar to installing the Helm chart directly. I think that my reason for choosing the Terraform approach is that it becomes more intuitive for most users, that can see the chart being installed on the cluster. However, I guess that the Helm install also will show up as an installed App on the cluster.
g
Yea, it looks like when we install the
rancher-monitoring
and
rancher-monitoring-crd
helm charts via
helm
they show up in the Rancher UI under
Apps & Marketplace > Installed Apps
which should be the same as installing via terraform. But when installing the plugin via the Rancher UI it doesn't show up under Installed Apps... that's the only difference we've noticed so far is how it shows up in the Rancher UI but functionally we haven't noticed any differences yet.
👍 1