-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps.txt
54 lines (30 loc) · 1.42 KB
/
steps.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
gcloud container clusters create nodejs-cluster --project acc-ilyas --num-nodes 1 --machine-type e2-standard-4 --disk-size 100GiB --zone europe-west1-c
for building and pushing images, check build.bat
kubectl apply -f ./k8s/service-a.yaml
kubectl apply -f ./k8s/service-b.yaml
kubectl apply -f ./k8s/service-c.yaml
check:
https://github.com/GoogleCloudPlatform/gke-networking-recipes/tree/main/ingress/single-cluster/ingress-nginx
kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user ilyas.ilyasov.1@gmail.com
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.0/deploy/static/provider/cloud/deploy.yaml
wait a bit: then:
kubectl apply -f ./k8s/ingress.yaml
check:
kubectl describe ingress -n nodejs-app
testing:
curl -H "host: foo.example.com" 34.79.44.32
cleanup:
kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.0/deploy/static/provider/cloud/deploy.yaml
kubectl delete -f ./k8s/ingress.yaml
RUN ELASTIC APM on Localhost:
cd ./elastic
docker-compose up -d
go to http://localhost:5601/app/apm to access kibana
START SERVICES LOCALLY:
npm run dev-a
npm run dev-b
npm run dev-c
TEST with different routes:
curl -H "host: foo.example.com" 34.79.44.32/service-a/
curl -H "host: foo.example.com" 34.79.44.32/service-a/routeWithLongOperation
curl -H "host: foo.example.com" 34.79.44.32/service-a/routeWithError