https://pulumi.com logo
n

numerous-printer-41511

11/23/2021, 8:22 PM
does
pulumi import
work with k8s objects?
w

witty-candle-66007

11/24/2021, 1:49 PM
Yes. You will need to
export KUBECONFIG=<file containing kubeconfig>
so the provider knows how to talk to the k8s cluster. But once that’s done, imports like:
pulumi import kubernetes:core/v1:Namespace NAMESPACE_NAME NAMESPACE_NAME
will import the object and generate the code as you would expect.
n

numerous-printer-41511

11/24/2021, 6:24 PM
thank you
3 Views