https://pulumi.com logo
#kubernetes
Title
# kubernetes
p

proud-pizza-80589

02/19/2021, 7:43 AM
I’m using fetchOpts.repo to install helm charts out of custom repo’s, but i now have to install https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus which needs 2 repo’s so it can install dependencies. Any idea how to configure pulumi for these two repo’s?
c

cool-fireman-90027

02/19/2021, 3:38 PM
You could do something like this:
Copy code
const kubestatemetrics = new k8s.helm.v3.Chart("kubestatemetrics",  {
    version: "1.2.1",
    namespace: metricsnamespace.metadata.name,
    chart: "kube-state-metrics",
    fetchOpts: {
        repo: "<https://charts.bitnami.com/bitnami>",
    }, 

}, { provider: k8sProvider });

const prometheus = new k8s.helm.v3.Chart("prometheus",  {
    version: "13.3.2",
    namespace: metricsnamespace.metadata.name,
    chart: "prometheus",
    fetchOpts: {
        repo: "<https://prometheus-community.github.io/helm-charts>",
    },
}, { provider: k8sProvider });
p

proud-pizza-80589

02/20/2021, 1:07 AM
thx, i did that and it works
5 Views