Created
May 21, 2020 19:29
-
-
Save dhananjaipai/3ce454cf90fbb7a0927bf25a30a3e0bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the right K8s context | |
kubectl config use-context <some_context> | |
# Delete old secret | |
kubectl delete secret postgres-credentials | |
# Create new secret | |
kubectl create secret generic postgres-credentials \ | |
--from-literal=DB_HOST=<new_host> \ | |
--from-literal=DB_PORT=5432 \ | |
--from-literal=DB_USER=dbuser@<new_host> \ | |
--from-literal=DB_PASS=SuperSecret \ | |
--from-literal=DB_NAME=my_db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment