Skip to content

Simple containers for testing and demonstrating (rolling) updates.

License

Notifications You must be signed in to change notification settings

kangasta/animals

Repository files navigation

Animals

Release

Simple containers for testing and demonstrating (rolling) updates. Based on UpCloudLtd / hello-container.

Usage

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

kubectl create deployment --image=ghcr.io/kangasta/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