Hello. We have a Pulumi managed application deploy...
# kubernetes
Hello. We have a Pulumi managed application deployment in Kubernetes. At some point someone added an ingress outside of Pulumi and now we need to add it to the state so it can be managed by Pulumi in the future. What is the best approach for this?
pulumi refresh
does nothing. I guess because it only looks at the resources in the state.
pulumi import
fails with an authorisation error, I think because in our setup we are confined to namespaces and cannot just enumerate all the namespaces. Maybe if there is a way to specify the namespace where Pulumi needs to look this can be resolved? The error we get is:
Copy code
error: Preview failed: <http://ingresses.networking.k8s.io|ingresses.networking.k8s.io> "ingress-name" is forbidden: User "user-token" cannot get resource "ingresses" in API group "<http://networking.k8s.io|networking.k8s.io>" in the namespace "default"
when doing the import, you can reference with
<namespace>/<resource name>
Ok, I'll give that a try. Thanks!
That did the trick. Thanks agains!