I'm planning to try a similar pattern (on AWS) in coming weeks. Thanks for sharing your approach! I had planned to build a kubeconfig file dynamically as well, although this seems to be a pattern that is a bit off the beaten path (couldn't find many docs on the topic)
o
orange-holiday-79016
01/09/2021, 7:04 PM
It is working now, however a major caveat of my current implementation is that this code runs before pulumi actually created the cluster at the cloud provider. So it won’t properly authenticate when the cluster gets created. It works only on subsequent runs (when the cluster gets updated) and if you have a predefined cluster name.