dbgjerez / golang-k8s-helm-helloworld

Golang application used to test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro

Application used to learn golang or anothers frameworks and tools like Kubernetes, OCP, etc

Build

Golang

With Golang:

go build app.go

Image

I use podman to build the imagen, you can use podman, docker or whatever you want. I have used my docker's user (b0rr3g0), you should change $USER for your own user.

podman build -t $USER/golang-hello-world .

Another option is to use the Makefile, previus change the parameters:

make build

Run

Golang

go run app.go

Docker

It can be used my image (b0rr3g0/golang-hello-world) or your own image.

docker run -p 8080:8080 b0rr3g0/golang-hello-world

Helm/Kustomize

Endpoints

Endpoint Comment
/api/v1/health Healtcheck
/api/v1/greetings Hello world message
/metrics Prometheus metrics exporter
not found 404 error code

About

Golang application used to test


Languages

Language:Smarty 40.6%Language:Go 37.2%Language:Makefile 16.0%Language:Dockerfile 5.8%Language:Shell 0.3%