Hi channel , Im a newbie with pulumi . I have alr...
# getting-started
r
Hi channel , Im a newbie with pulumi . I have already a deployed helm chart on my local cluster ( bitnami/nginx ) without pulumi and im trying to migrate my deployment to pulumi stack . when reading into pulumi documentation : they talk only about converting yaml file ( manifest ) and not helm chart converting any idea how to start with this ?
b
if you want to convert the helm chart, you can use
helm template
to generate YAML, and then input it into https://www.pulumi.com/kube2pulumi/
you can also install the helm chart directly with Pulumi if that's preferable
r
thanks for your quick reply @billowy-army-68599 solution (1) : converting using helm template : if we use that solution we will get a list kubernetes object and when the chart is upgraded we will lose the link between the chart and all object deployed . we will deal with a bunch of object ( native kubernetes object) instead of a helm chart object . ==> please correct if i'm wrong
b
helm charts create native Kubernetes object
if you update the chart in Pulumi, it updates all the objects
try it and see!
r
existing helm chart ( created without pulumi) + updating from pulumi ( values part ) => pulumi try to create a new one ( already existing ) : error
b
Can you share the error?
r
errors : Diagnostics: kubernetescore/v1ConfigMap (my-nginx-release-server-block): error: resource my-nginx-release-server-block was not successfully created by the Kubernetes API server : configmaps "my-nginx-release-server-block" already exists kubernetescore/v1Service (my-nginx-release): error: resource my-nginx-release was not successfully created by the Kubernetes API server : services "my-nginx-release" already exists kubernetesapps/v1Deployment (my-nginx-release): error: resource my-nginx-release was not successfully created by the Kubernetes API server : deployments.apps "my-nginx-release" already exists pulumipulumiStack (quick_pulumi_2-test_pulumi_helm): error: update failed
b
@refined-russia-81345 do those objects exist on your Kubernetes server? that's what it's telling you - you can't create a new deployment with the same name
r
Im trying to update to exesting one with pulumi
It was created with helm ( without pulumi)
b
if you want to update an existing one, you need to import it
r
you're right , thanks a lot just a final help , can you give me a link to import helm chart & kunernetes ressources using CLI cmd or python script ?
( im using local kubernetes cluster )
Founded for kubernetes native objet , but for helm chart I just published a new message in the channel about the issue