Skip to content

Charlesthebird/example-fetching-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This can be used as an example app to generate traffic.

It does a fetch request to a custom URL every second in ./app.js.

You can build this app yourself by changing the tag and context here and running the following. Make sure that you are logged in to docker with docker login.

export IMAGE_NAME=docker_username/example-fetching-app
export REMOTE_CONTEXT=your-remote-context
docker build . -t $IMAGE_NAME && \
docker push $IMAGE_NAME && \
kubectl apply --context=$REMOTE_CONTEXT -f ./kubernetes/namespace.yaml && \
cat ./kubernetes/deployment.yaml | \
    envsubst | \
    kubectl apply --context=$REMOTE_CONTEXT -f -

About

A basic node app that generates traffic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published