GoWebApp
It's a simple web application written in Golang which listens on port 8080
Building
It can be build using the command
go build -o metricswebapp server.go
Running
After building the application using the above step, the application can be run using the command
./metricswebapp
Docker Image
A docker image can be created using
docker build -t metricswebapp .
Running the docker image
Docker image can be run using
docker run --name metricswebapp --rm -p 8080:8080 metricswebapp
Running in Kubernetes
- Clone the repository
mkdir -p $GOPATH/src/github.com/viralkamdar
cd $GOPATH/src/github.com/viralkamdar
git clone [email protected]:viralkamdar/metricswebapp.git
- Create a namespace called metricswebapp
kubectl create namespace metricswebapp
- Deploy the helm chart
helm install metricswebapp $GOPATH/github.com/viralkamdar/metricswebapp/chart/metricswebapp