https://pulumi.com logo
e

echoing-activity-32278

12/27/2021, 10:46 AM
Hi. The cluster has already been deployed with
helm
, now I am switching to pulumi, I am seeing this
resource already exists
error:
Copy code
kubernetes:<http://rbac.authorization.k8s.io/v1:RoleBinding|rbac.authorization.k8s.io/v1:RoleBinding> (kube-system/example-cert-manager-qa:leaderelection):
    error: resource kube-system/example-cert-manager-qa:leaderelection was not successfully created by the Kubernetes API server : <http://rolebindings.rbac.authorization.k8s.io|rolebindings.rbac.authorization.k8s.io> "example-cert-manager-qa:leaderelection" already exists
b

billowy-army-68599

12/27/2021, 12:44 PM
yes, you'll need to import it. Pulumi doesn't know about it, so you'll have to import it into state
e

echoing-activity-32278

12/27/2021, 1:42 PM
Why can’t I perform a refresh?
b

billowy-army-68599

12/27/2021, 3:48 PM
because refresh compares state to existing, and it's not in your state
e

echoing-activity-32278

12/27/2021, 4:00 PM
Thanks. That really explains.
👍 1