- Issue a command similar to the following to switch to the TKG management cluster context:
kubectl config use-context <MGMT-CLUSTER>-admin@<MGMT-CLUSTER>
- Issue a command similar to the following to export the add-on secret to be modified (pinniped in this example) to a text file:
kubectl get secret <MGMT-CLUSTER>-pinniped-addon -n tkg-system -o jsonpath="{.data.values\.yaml}" | base64 --decode > values.yaml
- Open the values.yaml file with a text editor and make any needed changes. Save and close the file.
- Issue the following command encode the contents of the values.yaml file:
base64 -w 0 values.yaml
Note: Make a note of the encoded value as it will be used in a future step.
- Issue a command similar to the following to open the secret for editing:
kubectl edit secret MGMT-CLUSTER-pinniped-addon -n tkg-system
- Replace the encoded values.yaml data with the value noted in Step 4.
- Type :wq to close the editor.