The other day I was trying to install a Kubernetes cluster using the Tanzu Kubernetes Grid (TKG). But I ran into a problem that I cannot find anywhere documented, so doing this right here.
The recommended installation method is using the TKG installer UI. After installing all the prerequisites you start this installer with:
tkg init --ui
This will greet you with something like this:
![](https://images.eken.nl/content/images/2021/01/image.png)
And open this page in the browser for you. But in my case, the browser only displayed a blank screen. After opening the F12 developer tools you see this message:
![](https://images.eken.nl/content/images/2021/01/image-1.png)
After some research I found out that this can be fixed by changing a registry entry. This one to be precise:
![](https://images.eken.nl/content/images/2021/01/image-2.png)
By default (at least on my two Windows machines) this has another value than text/javascript. Apparently this value is used by the server serving the UI.
Change this to
text/javascriptrestart the
tgk init --ui
And presto, the installer UI works:
![](https://images.eken.nl/content/images/2021/01/image-3.png)
Hope this helps.