sparse-intern-71089
02/28/2022, 2:54 PMbored-table-20691
02/28/2022, 3:20 PMsteep-toddler-88913
02/28/2022, 3:35 PMk8s = do.KubernetesCluster("ptb-k8s", <etc>)
kube_provider = Provider("ptb-k8s-provider", args=ProviderArgs(kubeconfig=k8s.kube_configs[0].raw_config))
opts = ResourceOptions(provider=kube_provider, depends_on=[kube_provider, k8s])
nginx_release_args = ReleaseArgs(name="nginx-ingress", <etc>)
nginx_release = Release("nginx-ingress-controller", args=nginx_release_args, opts=opts)
steep-toddler-88913
02/28/2022, 3:37 PMkube_provider
and opts
are defined correctly, given that it isn't workingbored-table-20691
02/28/2022, 4:00 PMbored-table-20691
02/28/2022, 4:00 PMbored-table-20691
02/28/2022, 4:00 PMsteep-toddler-88913
02/28/2022, 4:22 PMsteep-toddler-88913
03/01/2022, 1:00 PMraw_config
that the code uses above, and tried using it as the kubeconfig locally; it didn't work, which makes sense. I updated the token in the kubeconfig, ran a kubectl get pods
while pointing to it as the kubeconfig, and it worked locally. So this means that somehow, the token in the kubeconfig in my code is incorrect... not quite sure how that happens.steep-toddler-88913
03/01/2022, 2:59 PMpulumi stack export --show-secrets --file mystack
2. open up mystack
and replace all instances of the previous, incorrect token with a new one that you know works (I just used vim fwiw), save and close the file
3. pulumi stack import --file mystack
And now my resources that touch the kubernetes server (secrets, helm charts, etc) do not run into the "unreachable cluster" error.