docker run --rm --name postgres --network omul -p 5432:5432 -v ~/pg/omul:/var/lib/postgresql/data -v ~/data:/data -e POSTGRES_USER=root -e POSTGRES_PASSWORD=root -e POSTGRES_DB=omul -d postgres:15.6
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx/ && helm repo update
helm install nginx ingress-nginx/ingress-nginx --namespace ingress-nginx --create-namespace -f helm/nginx-ingress.yaml
kubectl create namespace omul
helm install omul-mock helm/ -f helm/values-mock.yaml -n omul --create-namespace
newman run ./postman/mock_no_jwt.collection.json -e ./postman/localhost.env.json
helm install omul helm/ -f helm/values.yaml -n omul --create-namespace
newman run postman/e2e_no_jwt.collection.json -e postman/localhost.env.json
helm install omul helm/ -f helm/values.yaml -n omul --create-namespace
newman run postman/e2e_jwt.collection.json -e postman/k8s.env.json --env-var jwt={token}
curl --location 'http://localhost:8105/v1/auth/register'
--header 'Content-Type: application/json'
--data-raw '{
"login": "[email protected]",
"userId": "0",
"role": "CUSTOMER",
"password": "pass"
}'
curl --location 'http://localhost:8105/v1/auth/login/pass'
--header 'Content-Type: application/json'
--data-raw '{
"login": "[email protected]",
"password": "pass"
}'
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts && helm repo update
kubectl apply -f helm/grafana_storage.yaml
helm install prometheus-stack prometheus-community/kube-prometheus-stack -f helm/prometheus.yaml -n monitoring --create-namespace
helm install loki grafana/loki-stack -n monitoring --create-namespace -f helm/loki-values.yaml