question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pulumi failing to install kube-prometheus helm chart

See original GitHub issue

Problem description

Truing to install kube-prometheus helm chart found the bitnami repository or the kube-prometheus stack from the prometheus community as follows:

self.prometheus_chart = k8s.helm.v3.Chart(
           "prometheus",
            k8s.helm.v3.ChartOpts(
               chart="kube-prometheus-stack",
               fetch_opts=k8s.helm.v3.FetchOpts(
                   repo="https://prometheus-community.github.io/helm-charts",
               ),
       ))
 self.prometheus_chart = k8s.helm.v3.Chart(
            "prometheus-operator",
             k8s.helm.v3.ChartOpts(
                chart="kube-prometheus",
                fetch_opts=k8s.helm.v3.FetchOpts(
                    repo="https://charts.bitnami.com/bitnami",
                ),
        ))

returns the following error

pulumi:pulumi:Stack (dev):
  2020/11/24 03:27:45 info: skipping unknown hook: "crd-install"
  2020/11/24 03:27:45 info: skipping unknown hook: "crd-install"
  2020/11/24 03:27:45 info: skipping unknown hook: "crd-install"
  2020/11/24 03:27:45 info: skipping unknown hook: "crd-install"
  2020/11/24 03:27:45 info: skipping unknown hook: "crd-install"
  2020/11/24 03:27:45 info: skipping unknown hook: "crd-install"
  2020/11/24 03:27:45 info: skipping unknown hook: "crd-install"

 error: Program failed with an unhandled exception:
  error: Traceback (most recent call last):
    File "/home/thora/.pulumi/bin/pulumi-language-python-exec", line 85, in <module>
      loop.run_until_complete(coro)
    File "/home/thora/.conda/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
      return future.result()
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/runtime/stack.py", line 83, in run_in_stack
      await run_pulumi_func(lambda: Stack(func))
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/runtime/stack.py", line 51, in run_pulumi_func
      await RPC_MANAGER.rpcs.pop()
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/runtime/rpc_manager.py", line 67, in rpc_wrapper
      result = await rpc
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/runtime/resource.py", line 451, in do_register_resource_outputs
      serialized_props = await rpc.serialize_properties(outputs, {})
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 75, in serialize_properties
      result = await serialize_property(v, deps, input_transformer)
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 197, in serialize_property
      value = await serialize_property(output.future(), deps, input_transformer)
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/runtime/rpc.py", line 183, in serialize_property
      future_return = await asyncio.ensure_future(awaitable)
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 113, in get_value
      val = await self._future
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 185, in run
      return await transformed.future(with_unknowns=True)
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 113, in get_value
      val = await self._future
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 185, in run
      return await transformed.future(with_unknowns=True)
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 113, in get_value
      val = await self._future
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 154, in run
      value = await self._future
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 338, in gather_futures
      return await asyncio.gather(*value_futures)
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 113, in get_value
      val = await self._future
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 154, in run
      value = await self._future
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi/output.py", line 175, in run
      transformed: Input[U] = func(value)
    File "/home/thora/.conda/lib/python3.7/site-packages/pulumi_kubernetes/yaml.py", line 519, in <lambda>
      CustomResourceDefinition(f"{x}", opts, **obj)))]
  TypeError: __init__() got an unexpected keyword argument 'status'
  error: an unhandled error occurred: Program exited with non-zero exit code: 1

pip show pulumi

Name: pulumi
Version: 2.14.0
Summary: Pulumi's Python SDK
Home-page: https://github.com/pulumi/pulumi
Author: None
Author-email: None
License: Apache 2.0
Location: /home/thora/.conda/lib/python3.7/site-packages
Requires: dill, protobuf, grpcio
Required-by: pulumi-tls, pulumi-terraform, pulumi-random, pulumi-policy, pulumi-kubernetes, pulumi-kafka, pulumi-github, pulumi-gcp, pulumi-docker

pip show pulumi_kubernetes

Version: 2.7.2
Summary: A Pulumi package for creating and managing Kubernetes resources.
Home-page: https://pulumi.com
Author: None
Author-email: None
License: Apache-2.0
Location: /home/thora/.conda/lib/python3.7/site-packages
Requires: pulumi, semver, requests, parver, pyyaml
Required-by:

minikube version


minikube version: v1.13.0
commit: v1.13.0

Assuming this is an issue with the CustomResource def and not the helm chart? Any tips on how one should solve this? Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
gabomgp4commented, Dec 15, 2020

@bradkyle, is it possible to know what version do you tried?

It’s not working for me. It’s failing with the error:

   error: resource prometheusrules.monitoring.coreos.com was not successfully created by the Kubernetes API server: customresourcedefinitions.apiextensions.k8s.io "prometheusrules.monitoring.coreos.com" already exists

And other similar errors.

I’m tried with the helm chart and with directly with the manifests from typescript. But it’s not working.

0reactions
bradkylecommented, Nov 28, 2020

Works perfectly with the typescript sdk, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to monitor Cilium on your Civo k3s cluster with Prometheus
This code will install the kube-prometheus-stack helm chart on our Civo k3s cluster. The Pulumi k8s provider uses the kubeconfig from the ...
Read more >
How to create a Grafana folder through Pulumi - Stack Overflow
I am able to install and import Grafana dashboards in an Azure Kubernetes Service using Pulumi through a HelmRelease Custom Resource ...
Read more >
Kubernetes - Pulumi-community
i.e. I have helm charts, not in a remote repository, ... refreshing (5s) warning: configured Kubernetes cluster is unreachable: unable to ...
Read more >
Kustomize vs Helm: Comparison & Tutorial - Kubecost
Helm is a deployment tool that simplifies the installation, packaging, and management of Kubernetes workloads using chart-based templates. A Helm chart is a ......
Read more >
SweetOps #helmfile for January, 2021
Hi everyone, Does anyone have a problem with helmfile concurrency? I'm not able to install multiple releases in parallel, I see only one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found