Tanzu - unable to create Tanzu Standalone Cluster client



Question: unable to create Tanzu Standalone Cluster client

準備好 Tanzu CLI 環境後,執行「tanzu standalone-cluster create --ui」指令後,發現下列錯誤訊息,並且無法繼續?
Error: unable to create Tanzu Standalone Cluster client
Cause: unable to ensure prerequisites: unable to ensure tkg BOM file: failed to download TKG compatibility file from the registry: failed to list TKG compatibility image tags: Get "https://projects.registry.vmware.com/v2/": x509: certificate signed by unknown authority
Error: exit status 1



Answer:

簡單來說,請將「%USERPROFILE%\.config\tanzu\tkg\config.yaml」檔案內容,修改成如下內容後,再次執行「tanzu standalone-cluster create --ui」指令,便不會出現錯誤。
release:
    version: ""
TKG_CUSTOM_IMAGE_REPOSITORY_SKIP_TLS_VERIFY: true