Skip to content

paurosello/demoappskustomize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Based

https://github.com/GoogleCloudPlatform/microservices-demo https://github.com/GoogleCloudPlatform/microservices-demo/blob/main/release/kubernetes-manifests.yaml

https://github.com/didier-durand/microservices-on-cloud-kubernetes

Install Remote

kubectl create ns store
kubectl apply -f https://raw.githubusercontent.com/paurosello/demoappskustomize/main/pss.yaml
kustomize build github.com/paurosello/demoappskustomize//kustomize-store | kubectl apply -n store -f -

Install Local

kubectl create ns store
kubectl apply -f pss.yaml
kustomize build kustomize-store/ | kubectl apply -n store -f -

Check Load

Total requests

kubectl logs -n store -l app=loadgenerator -c main | grep Aggregated | awk '{print $2}'

Errors

kubectl logs -n store -l app=loadgenerator -c main | grep Aggregated | awk '{print $3}' | sed "s/[(][^)]*[)]//g"

Script check

while true
do
    kubectl get nodes >> /tmp/error_logs
    kubectl logs -l app=loadgenerator -c main | grep Aggregated | awk '{print $2} {print $3}' >> /tmp/error_logs
    cat /tmp/error_logs
    sleep 10
done

Run loadgenerator locally

docker run -it -e FRONTEND_ADDR=frontend.domain -e USERS=2 gcr.io/google-samples/microservices-demo/loadgenerator:v0.10.0

K6 loadgenerator

k6 run --env BASE_URL=https://frontend.domain script.js

About

Demo Apps Kustomize

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published