Skip to content

Its a simple counter app which logs and increments the count from a file. Repository includes Dockerfile and respective kubernetes manifest

Notifications You must be signed in to change notification settings

kahootali/counter-app

Repository files navigation

counter-app

Its a simple counter app which logs and increments the count from a file. Repository includes Dockerfile and respective kubernetes manifest.

This repo is used in Medium Blog: K8s Deployment vs Statefulset vs Daemonset.

The image is already pushed at docker.io/kahootali/counter. You can use that or build and run the app yourself using the following commands.

Build

You can build the image by docker build -t counter .

Run

You can build the image by docker run -it counter

Deploy on Kubernetes

You can deploy on kubernetes using the manifests present in kubernetes folder. I have used Persistent Volumes so that when scaling replicas of Deployments or Statefulsets, you can easily see the difference.

About

Its a simple counter app which logs and increments the count from a file. Repository includes Dockerfile and respective kubernetes manifest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published