does `pulumi import` work with k8s objects?
# kubernetes
n
does
pulumi import
work with k8s objects?
w
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
thank you