https://pulumi.com logo
#kubernetes
Title
# kubernetes
r

rapid-soccer-18092

09/01/2021, 6:29 AM
Hi. I am having issues installing the 
cert-manager
 Helm chart and setting up a LetsEncrypt cluster issuer using Pulumi in our Azure Kubernetes cluster. We are using Kubernetes version 1.21.2 and cert-manager. 1.5.3. When running
pulumi up
I get the following error:
Copy code
kubernetes:<http://cert-manager.io/v1:ClusterIssuer|cert-manager.io/v1:ClusterIssuer> (cert-manager-letsencrypt):
    error: creation of resource cert-manager/letsencrypt failed because the Kubernetes API server reported that the apiVersion for this resource does not exist. Verify that any required CRDs have been created: no matches for kind "ClusterIssuer" in version "<http://cert-manager.io/v1|cert-manager.io/v1>"
    error: update failedaToolsCertManager                 cert-manager
When running 
pulumi up
 again it succeeds and the letsencrypt ClusterIssuer is correctly created. I don't want to have to run 
pulumi up
 consecutive times to reach a successful deployment. Can anyone see what the issue is here?
b

bored-table-20691

09/01/2021, 6:31 AM
There’s some prior chats about certmanager specifically and the dependency piece
r

rapid-soccer-18092

09/01/2021, 6:54 AM
So from what I can it has something to do with child dependencies of the chart not being ready
b

bored-table-20691

09/01/2021, 6:55 AM
I believe so, that was always the conclusion. I don’t know much about the C# SDK specifically, but it may expose the list of all child resources and you can wait on that specifically, as opposed to the HelmChart resource itself.
r

rapid-soccer-18092

09/01/2021, 8:09 AM
I'm really struggling to figure out the SDK API to do this ... will post my updates
s

steep-toddler-94095

09/01/2021, 3:41 PM
in the ClusterIssuer I have (in TypeScript)
Copy code
dependsOn: chart.resources.apply((m) => Object.values(m))
b

bored-table-20691

09/01/2021, 5:10 PM
I believe Go also exposes all the
Resources
6 Views