https://github.com/aleroxac/goexpert-k8s
goexpert-k8s
https://github.com/aleroxac/goexpert-k8s
docker docker-compose fullcycle go goexpert golang k8s kubernetes
Last synced: 3 months ago
JSON representation
goexpert-k8s
- Host: GitHub
- URL: https://github.com/aleroxac/goexpert-k8s
- Owner: aleroxac
- Created: 2024-04-20T11:48:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T13:42:04.000Z (about 2 years ago)
- Last Synced: 2025-01-16T16:23:42.328Z (over 1 year ago)
- Topics: docker, docker-compose, fullcycle, go, goexpert, golang, k8s, kubernetes
- Language: Makefile
- Homepage: https://github.com/aleroxac/goexpert-k8s
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# goexpert-k8s
## Modo de uso
``` shell
### local, usando docker-compose
make compose_up
make run
### kubernetes
make cluster_up
make build
make deploy
NODE_ADDRESS=$(shell kubectl get node goexpert-k8s-control-plane -o jsonpath="{.status.addresses[0].address}")
NODE_PORT=$(kubectl get svc server-svc -o jsonpath="{.spec.ports[0].nodePort}")
curl ${NODE_ADDRESS}:${NODE_PORT}/status
curl ${NODE_ADDRESS}:${NODE_PORT}/hello/$(whoami)
make cluster_down
```