Hey guys. We currently use flux to deploy our k8s ...
# kubernetes
b
Hey guys. We currently use flux to deploy our k8s monitoring stack and now we're planning to use the k8s-monitoring-helm and deploying it using pulumi. I couldn't really find any resources for this. Any inputs would be appreciated.
d
I would recommend that you use the Release resource to accomplish that.
b
Hey @damp-airline-38442 thank you for your reply. Just a quick follow up question; I am currently referring to the helmv3 chart but can't seem to figure out how to build the grafana alloy config. What resources would you recommend me for that?
d
Do you mean that you know the helm values but are struggling to set them? Or that you aren't sure about the grafana chart specifics?
b
Honestly, I am trying to figure that out myself. We are currently using flux to deploy our kubernetes monitoring helm chart. And the goal is to provision this using pulumi. I'm a little stuck because I can't seem to find the right resources for this. We send the metrics and logs to prometheus and loki using a url endpoint. And this is the chart suggested by grafana: https://github.com/grafana/k8s-monitoring-helm They're mainly using yaml formats to configure values; but I'm unsure how I would do that through pulumi
d
I would first get things working using
helm install -f values.yaml
Then I would convert the contents of values.yaml into the
values
property of the
Release
resource.
b
Interesting. Thank you for your inputs. Let me try that real quick 😃
Hey @damp-airline-38442 thank you for your suggestion. Seems like it's coming together. A question that I had was, We have some extraconfig rules and according to values.yaml file, it goes into 'alloy-metrics'. Do you suggest that I convert the template string to a typescript object?
d
I don't know the specifics, but I doubt it.
b
Got it. Thanks!