Skip to content
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.

Latest commit

 

History

History
33 lines (22 loc) · 587 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 587 Bytes

Create databases SQL

This creates databases for DevOps tools.

Steps

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