Update Kubernetes secret after changing the `pds` password
If you change the password for the pds user, you need to also update the corresponding Kubernetes secret for the deployment. To base64 encode a string and update the Kubernetes secret:
-
Get the Kubernetes secret for the couchbase data service:
kubectl get secrets -n <namespace-where-the-Couchbase-data-service-is-deployed> -
Encode your new administrator password into
base64:echo <the-updated-password1> | base64 -
Update the Kubernetes secret with the new
base64encoded adminsitrator password:kubectl get secret cb-rke-qichff-creds -n cb -o json | jq '.data["password"]="UGFzc3dvcmQxCg=="' | kubectl apply -f -secret/cb-rke-qichff-creds configured