Cluster needs to have RBAC enabled. Default values file assumes your using traefik as an ingress.
Modify depending on cluster ingress. Tested on Kubernetes Version v1.10.0
.
git clone [email protected]:joshrendek/the-counter.git
cd the-counter
helm upgrade -i --namespace the-counter the-counter deployment/the-counter
Demo: https://the-counter.svc.bluescripts.net
There is a helm test file provided that can be run like this (after installing):
kubectl delete po -n the-counter the-counter-credentials-test # if it already exists
helm test the-counter
Assuming you have a valid ~/.kube/config
(either a real cluster or minikube):
go run main.go
You can then see the number of pods running in the default namespace:
curl localhost:8080
Depending on which tests you want to run you will need to run them inside the provided docker container:
make docker/test
make docker/build docker/push
- mock out k8s call to test
- add helm test
- Add health check
- Add liveness check
- set gin release mode