https://pulumi.com logo
Title
r

refined-russia-81345

09/09/2021, 4:37 PM
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

billowy-army-68599

09/09/2021, 4:43 PM
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

refined-russia-81345

09/09/2021, 4:54 PM
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

billowy-army-68599

09/09/2021, 4:54 PM
helm charts create native Kubernetes object
if you update the chart in Pulumi, it updates all the objects
try it and see!
r

refined-russia-81345

09/09/2021, 5:04 PM
existing helm chart ( created without pulumi) + updating from pulumi ( values part ) => pulumi try to create a new one ( already existing ) : error
b

billowy-army-68599

09/09/2021, 6:39 PM
Can you share the error?
r

refined-russia-81345

09/09/2021, 6:50 PM
errors : Diagnostics: kubernetes:core/v1:ConfigMap (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 kubernetes:core/v1:Service (my-nginx-release): error: resource my-nginx-release was not successfully created by the Kubernetes API server : services "my-nginx-release" already exists kubernetes:apps/v1:Deployment (my-nginx-release): error: resource my-nginx-release was not successfully created by the Kubernetes API server : deployments.apps "my-nginx-release" already exists pulumiđŸ˜›ulumi:Stack (quick_pulumi_2-test_pulumi_helm): error: update failed
b

billowy-army-68599

09/09/2021, 7:59 PM
@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

refined-russia-81345

09/09/2021, 8:08 PM
Im trying to update to exesting one with pulumi
It was created with helm ( without pulumi)
b

billowy-army-68599

09/09/2021, 9:25 PM
if you want to update an existing one, you need to import it
r

refined-russia-81345

09/09/2021, 10:20 PM
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