09/02/2022, 1:26 PM
Hi there. I faced with an issue related to kubernetes provider. I have ManagedCluster configured and deployed to Azure. This cluster is used for Provider creation:
var aksProvider = new K8s.Provider("k8s-provider-dev", new ProviderArgs
                KubeConfig = kubeConfig,
                Cluster = kubernetesCluster.Name,
which I use for creation of kubernetes dashboard:
var kubeDashboard = new ConfigFile("my-kubernetes-dashboard", new ConfigFileArgs
                File = "<>"
            new ComponentResourceOptions
                Provider = aksProvider,
                DependsOn = aksProvider!
It works fine when deployment of cluster happens for the first time but if I'm trying to change Virtual Machine size (which requires recreation of cluster) and deploy this update I get an error:
error: resource complete event returned an error: failed to verify snapshot: resource urn:pulumi:dev::MyProject::kubernetes:yaml:ConfigFile$kubernetes:core/v1:Namespace::kubernetes-dashboard refers to unknown provider urn:pulumi:dev::MyProject::pulumi:providers:kubernetes::k8s-provider-dev::650f67b5-a3be-423f-81be-5e8453bf9c4f
    error: update failed
Is there any workaround how to fix this issue or maybe I'm doing something wrong? Thank you!


09/05/2022, 7:29 AM
Actually facing with the same issue, didn't manage find work around 😞