https://github.com/picadoh/hellofromhost
https://github.com/picadoh/hellofromhost
docker golang helloworld k8s kubernetes web
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/picadoh/hellofromhost
- Owner: picadoh
- Created: 2019-04-16T11:45:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T18:06:37.000Z (about 7 years ago)
- Last Synced: 2025-12-12T21:58:18.954Z (6 months ago)
- Topics: docker, golang, helloworld, k8s, kubernetes, web
- Language: Go
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a simple web application written in Go that simply prints `Hello from ` whenever the / endpoint is accessed. The goal of this application is for demonstration purposes and it's not intended to be a production-ready service (e.g. Docker, Kubernetes, etc).
## Usage
### Go SDK
go build hello.go
./hello
curl http://localhost:8080
### Docker
Building the image:
docker build . -t hellofromhost
Using a pre-built image:
docker run --name hellofromhost -d -p 8080:8080 picadoh/hellofromhost
curl http://localhost:8080
### Kubernetes
Deploying:
kubectl create -f kube.yaml
kubectl get service hellofromhost
curl http://
Scaling:
kubectl scale deployments/hellofromhost --replicas=2
Upgrading:
kubectl set image deployments/hellofromhost hellofromhost=picadoh/hellofromhost:v2