Skip to content

ramingit97/micro1-kube

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages