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

brash-quill-35776

10/05/2021, 5:58 PM
Hi, how can I use Pulumi to get istio configmap and to update the data? Istio configmap is created by
istioctl
, rather than Pulumi itself I know for resources that created by pulumi, I can definitely update that by running
pulumi up
, but how about resource that not created by
pulumi
?
s

steep-toddler-94095

10/05/2021, 9:42 PM
pulumi cannot manage resources that aren't pulled into its state, and it's not recommended to pull things into state unless pulumi will be the only thing managing the resource. I'm not familiar with istio installation/configuration but is there not a declarative way to configure it? E.g. helm chart installation if
istioctl
is only used to create the configmap, and you're allowed to choose how to update it, you could
import
it into pulumi state
b

brash-quill-35776

10/05/2021, 10:47 PM
thanks for clarify that, seems better to use other method
s

steep-toddler-94095

10/05/2021, 11:05 PM
You can use Pulumi to deploy helm charts by the way, if Helm is what you mean by "other method"
b

brash-quill-35776

10/05/2021, 11:06 PM
what I wanna do is to update the existing CM data rather than deployment, so should probably use k8s api package, thanks for letting me know, appreciate that
👍 1
5 Views