Skip to content

Simple containers for testing and demonstrating (rolling) updates.

License

Notifications You must be signed in to change notification settings

cicd-tutorials/animals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animals

Release

Simple containers for testing and demonstrating (rolling) updates. Based on UpCloudLtd / hello-container. Uses the same Material for MkDocs styling as cicd-tutorials.net.

Usage

To create a deployment and expose it from your Kubernetes cluster, run:

kubectl create deployment --image=ghcr.io/cicd-tutorials/animals:cow moo
kubectl expose deployment moo --port=80 --target-port=80 --type=LoadBalancer
kubectl get svc -w

This process might take a few minutes. After external IP for hello service is visible, use it to test that pod is reachabe from the internet.

Development

Build animals image with:

docker build . -t animals

# With version note
docker build . -t animals --build-arg "VERSION_NOTE=at $(git rev-parse HEAD)"

# With all build args
docker build . -t animals \
  --build-arg "VERSION_NOTE=at $(git rev-parse HEAD)" \
  --build-arg "EMOJI=🦁" \
  --build-arg "HELLO=Moo" \
  --build-arg "NAME=horse"

Run animals with:

docker run -i -p 8080:80 --rm animals

About

Simple containers for testing and demonstrating (rolling) updates.

Topics

Resources

License

Stars

Watchers

Forks

Packages