https://pulumi.com logo
Title
p

proud-pizza-80589

12/24/2020, 9:27 AM
Can you “rate limit” deploys on k8s, or define retries/dependencies? I have a simple chart for a pull secret before 5 others. and just this one failed due some overload. All the rest deployed perfectly apart from one image that cannot be pulled.
+  kubernetes:core/v1:Secret beta/ghcr-pull-secret creating error: configured Kubernetes cluster is unreachable: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
141
 +  kubernetes:core/v1:Secret beta/ghcr-pull-secret **creating failed** error: configured Kubernetes cluster is unreachable: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
c

clever-byte-21551

12/24/2020, 2:03 PM
did you try to use
dependsOn
?
b

billowy-army-68599

12/24/2020, 4:28 PM
@proud-pizza-80589 where did this error come from? Pulumi?
p

proud-pizza-80589

12/24/2020, 4:32 PM
yeah, found it. So i created the pull secret on my computer, when my kubeconfig was configured correctly for the both the cluster and the namespace. That worked. But in moving my code to a CustomResource, i forgot to add the k8s provider. So anytime i was not connected to the right cluster/namespace this would fail with the error above.
b

billowy-army-68599

12/24/2020, 4:33 PM
awesome, glad you got it sorted!
p

proud-pizza-80589

12/24/2020, 4:33 PM
figured it out when i created a namespace and 10 difficult helm charts deployed without a hitch, and this stupid secret complained about the namespace not existing.
at some point i’ll stop asking stupid questions 🙂
b

billowy-army-68599

12/24/2020, 4:37 PM
please keep them coming!