Open the
tkg-extensions-v1.0.0/authentication/gangway/vsphere/03-secret.yaml
file and confirm if you have the parameter named as
sesssionKey
.
Note: Yes, that is correct, it is a typo but it
must be spelled out with an extra
"s" in its name. Naming this parameter to
sessionKey
or something else will produce the error above.
The
sesssionKey parameter can also be found in Gangway's deployment
(tkg-extensions-v1.0.0/authentication/gangway/vsphere/05-deployment.yaml
). Make sure that it matches the parameter name from the previous step.
Example:
Option 1
- Keeping the name of the parameter as
sesssionKey
will help resolve the error above. - You can either directly edit the secret by using the following command:
kubectl -n tanzu-system-auth edit secrets gangway
Option 2
- Edit the following file with correct configurations:
tkg-extensions-v1.0.0/authentication/gangway/vsphere/03-secret.yaml
- Run the following command:
kubectl apply -f tkg-extensions-v1.0.0/authentication/gangway/vsphere/03-secret.yaml