This error can be fixed by retrieving the
dex-ca.crt
from the management cluster and creating a
ConfigMap
using the contents of
dex-ca.crt.
Switch context to management cluster to get the CA for dex and then run the following command:
kubectl get secret dex-cert-tls -n tanzu-system-auth -o 'go-template={{ index .data "ca.crt" }}' | base64 -D > dex-ca.crt
Switch context to workload cluster where you have configured gangway and create a
ConfigMap
using the
dex-ca.crt
file from the previous step.
kubectl create cm dex-ca -n tanzu-system-auth --from-file=dex-ca.crt=dex-ca.crt