This article provides instructions for updating the configuration of add-on secrets in Tanzu Kubernetes Grid (TKG) to make changes persistent through upgrades.
Pinniped also utilizes the an add-on secret when utilized with an LDAP solution. Thus, these are the steps to also renew a Pinniped LDAP password.
The Pinniped LDAP passwords may have an expiry time per the LDAP solution being used by the TKG Operator.
TKG 2.5.x and higher: For the Pinniped LDAP password update, that add-on secret is updated using the following steps:
kubectl config use-context <MGMT-CLUSTER>-admin@<MGMT-CLUSTER>
kubectl get secret <MGMT-CLUSTER>-pinniped-data-values -n tkg-system -o jsonpath="{.data.values\.yaml}" | base64 --decode > pinniped-data-values.yamlkubectl get secret <MGMT-CLUSTER>-pinniped-package -n tkg-system -o jsonpath="{.data.values\.yaml}" | base64 --decode > pinniped-package-values.yaml
base64 -w 0 pinniped-data-values.yamlkubectl edit secret MGMT-CLUSTER-pinniped-data-values -n tkg-system
:wq to close the editor.base64 -w 0 pinniped-package-values.yamlkubectl edit secret MGMT-CLUSTER-pinniped-package -n tkg-system:wq to close the editor.
For TKG versions older than 2.X.X: Pinniped LDAP password update, that add-on secret is updated using the following steps:
kubectl config use-context <MGMT-CLUSTER>-admin@<MGMT-CLUSTER>
kubectl get secret <MGMT-CLUSTER>-pinniped-addon -n tkg-system -o jsonpath="{.data.values\.yaml}" | base64 --decode > values.yaml
base64 -w 0 values.yamlkubectl edit secret MGMT-CLUSTER-pinniped-addon -n tkg-system
:wq to close the editor.NOTE: You should not change the "name" of these secrets.