-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathComandos.txt
69 lines (55 loc) · 2.56 KB
/
Comandos.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cd C:\Users\Omen\OneDrive - usach.cl\nivel 6\Técnicas de Ing. de Software\TINGESO_MICROSERVICE\deployment
minikube start
minikube dashboard
ip minikube cluster: 192.168.49.2
COMANDOS:
minikube start
//para base de datos
kubectl apply -f postgres-config-map.yaml
kubectl apply -f postgres-secrets.yaml
kubectl apply -f postgres-dp-sv-pvc.yaml
kubectl get pods (para ver si se creo la base de datos)
kubectl exec -it postgres-5dcd79964c-72p7k -- psql -U postgres
CREATE DATABASE userprestabancodb;
CREATE DATABASE creditrequestprestabancodb;
CREATE DATABASE creditevaluationprestabancodb;
CREATE DATABASE calculationsprestabancodb;
CREATE DATABASE trackingprestabancodb;
\l
\q para salir
//levantar microservicios en este orden
kubectl apply -f microservice-config-deployment-service.yaml
kubectl apply -f microservice-eureka-deployment-service.yaml
kubectl apply -f microservice-gateway-deployment-service.yaml
kubectl apply -f microservice-user-deployment-service.yaml
kubectl apply -f microservice-credit-request-deployment-service.yaml
kubectl apply -f microservice-credit-evaluation-deployment-service.yaml
kubectl apply -f microservice-calculations-deployment-service.yaml
kubectl apply -f microservice-tracking-deployment-service.yaml
kubectl apply -f frontend-deployment-service.yaml
kubectl get pods
kubectl port-forward microservice-gateway-deployment-5744ccb87d-fkszx 8080:8080
minikube service frontend minikube tunnel
PARA ELIMINAR:
kubectl delete deployments postgres
kubectl delete configmap postgres-config-map
kubectl delete services postgres
//si borro esto borro la data
kubectl delete pvc postgres-persistent-volume-claim
kubectl delete deployments microservice-gateway-deployment
kubectl delete deployments microservice-eureka-deployment
kubectl delete deployments microservice-config-deployment
kubectl delete service microservice-eureka
kubectl delete service microservice-gateway
kubectl delete service microservice-config
kubectl delete deployments microservice-user-deployment
kubectl delete deployments microservice-credit-request-deployment
kubectl delete deployments microservice-credit-evaluation-deployment
kubectl delete deployments microservice-tracking-deployment
kubectl delete deployments microservice-calculations-deployment
kubectl delete deployments frontend-deployment
kubectl delete service frontend
Para probar conexiones:
kubectl exec -it microservice-gateway-deployment-5744ccb87d-dqhm4 -n default -- curl http://microservice-gateway:8080/employee/
Da lo siguiente:
[{"id":1,"firstName":"Eduardo","lastName":"Perez","email":"[email protected]","idCreditRequests":[]}]