ramingit97 / micro1-kube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change to docker environment - eval $(minikube docker-env)

0) patronic commands; 
psql -h localhost -p 5432 -U postgres

\dt

kubectl config set-context --current --namespace=development

SELECT * FROM USERS;   


1) cd postgres-kube
    docker build -t patroni .
    kubectl apply -f volume.yaml

2) cd auth/kube
    docker build -t auth-service . -f .Dockerfile
    kubectl apply -f config.yaml 
    kubectl apply -f postgres2.yaml
    kubectl apply -f deployment.yaml
3) cd api-gateway
    docker build -t api-gateway .
    kubectl apply -f config.yaml 
    kubectl apply -f deployment.yaml

4) cd products
    docker build -t product-service .
    kubectl apply -f config.yaml 
    kubectl apply -f postgres2.yaml
    kubectl apply -f deployment.yaml




 #Grafana

 #1 Get secret for username: admin
 kubectl get secret nestjs-metrics-grafana -o jsonpath="{.data.admin-password}" | base64 --decode; echo    

About


Languages

Language:TypeScript 98.0%Language:JavaScript 0.5%Language:Dockerfile 0.5%Language:Smarty 0.4%Language:Shell 0.3%Language:HTML 0.2%