https://pulumi.com logo
#general
Title
# general
a

alert-balloon-36955

02/21/2022, 7:51 PM
Does anyone knows how to specify and specific helm chart from a helm repo in kubernetes helm chart ?
v

victorious-wall-1075

02/22/2022, 3:35 AM
here you go:
Copy code
import pulumi
from pulumi import Output
from pulumi_kubernetes.core.v1 import Service
from pulumi_kubernetes.helm.v3 import Release, ReleaseArgs, RepositoryOptsArgs

# Deploy the bitnami/wordpress chart.
wordpress = Release(
    "wpdev",
    ReleaseArgs(
        chart="wordpress",
        repository_opts=RepositoryOptsArgs(
            repo="<https://charts.bitnami.com/bitnami>",
        ),
        version="9.6.0",
    ),
)

srv = Service.get("wpdev-wordpress", Output.concat(wordpress.status.namespace, "/", wordpress.status.name, "-wordpress"))
# Export the ingress IP for Wordpress frontend.
pulumi.export("frontendIP", srv.status.load_balancer.ingress[0].ip)
2 Views