Create gobank cluster via:
make clusterDelete gobank cluster via:
make delete_cluster_gobankMake initial setup via:
make setupCreate postgres database cluster credentials via:
make create_credsor manual via (make sure namespace exists first):
kubectl create secret generic db-creds --namespace gobank --from-literal=username=root --from-literal=password='YOUR_PASSWORD_HERE'Create namespace via:
make namespaceDelete postgres database cluster credentials via:
kubectl delete secret db-credsCheck pods via:
kubectl get podsDelete a deployment via:
kubectl delete deployment DEPLOYMENT_NAMEApply a deployment yaml file via:
kubectl apply -f PATH_TO_YAMLApply all cluster configs:
make apply_cluster_configsCreate postgres database cluster via:
make cluster_dbCreate gobank-api cluster via:
make cluster_gobank_apiStart cluster via:
make cluster_startStop cluster via:
make cluster_stopExpose a port to database via:
kubectl port-forward svc/gobank-db-rw 5432:5432Generate db docs via:
tbls docGenerate swagger docs via:
swag init -g main.go -o docsMake db migration via:
migrate create -ext sql -dir db/migration -seq <migration_name>