Unable to upgrade proxy enabled Tanzu Kubernetes Grid workload cluster on vSphere 7.0 u2
search cancel

Unable to upgrade proxy enabled Tanzu Kubernetes Grid workload cluster on vSphere 7.0 u2

book

Article ID: 327467

calendar_today

Updated On:

Products

Tanzu Kubernetes Grid

Issue/Introduction

This article will help users to upgrade proxy enabled TKG clusters .

Symptoms:

The following error will encounter when you face this issue:

  • You see output similar to the following when you run the "tanzu cluster upgrade"  command:

Error: failed to deploy additional components after kubernetes upgrade: unable to get cluster configuration: unable to get template: - assert.fail: fail: TKG_HTTP_PROXY and TKG_HTTPS_PROXY should both be set or left as empty in toplevel 03_customizations/http_proxy.yaml:9 | #@ assert.fail(“TKG_HTTP_PROXY and TKG_HTTPS_PROXY should both be set or left as empty”) Usage: tanzu cluster upgrade CLUSTER_NAME [flags] TKG_HTTP_PROXY and TKG_HTTPS_PROXY are set in the cluster-config file for that cluster

 


Environment

VMware Tanzu Kubernetes Grid 1.x

Cause

User has set the TKG_HTTP_PROXY and TKG_HTTPS_PROXY before creating workload cluster. This is a bug in v1.3.1 that this proxy configuration provided during cluster creation is not getting used during upgrade. 

Resolution

Fixed in upcoming TKG releases. 


Workaround:

You can apply the following workaround :-

  • Specify the  TKG_HTTP_PROXY and TKG_HTTPS_PROXY config variables as part of ~/.tanzu/tkg/config.yaml file  or  as Environment variables just before upgrade and rerun the "tanzu cluster upgrade <workload-cluster-name> -v 9" command. 

 

 


Additional Information