This creates databases for DevOps tools.
Create a namespace:
kubectl create namespace devops
Create a secret:
kubectl -n devops create secret generic create-databases \
"--from-literal=host=$DEVOPS_POSTGRES_HOST" \
"--from-literal=admin_user=$DEVOPS_POSTGRES_ROOT_USERNAME" \
"--from-literal=admin_password=$DEVOPS_POSTGRES_ROOT_PASSWORD"
Apply the manifests:
kubectl -n devops apply -f create-databases/
Make sure the job has been successfully done.
kubectl -n devops logs -f job/create-databases