go-cloud-k8s-shell
A simple Golang microservice with some essential command line tools to make some tests inside a k8s cluster
some things to try inside a shell for this container:
you can check with curl another service already deployed like this :
curl "http://${GO_CLOUD_K8S_INFO_SERVICE_SERVICE_HOST}:${GO_CLOUD_K8S_INFO_SERVICE_SERVICE_PORT_HTTP}"
or with this shorter version :
curl "http://go-cloud-k8s-info-service:${GO_CLOUD_K8S_INFO_SERVICE_SERVICE_PORT_HTTP}"
in those two previous example, we use the service exposed by the kubernetes yaml deployment in go-cloud-k8s-info
you can also run :
./getServiceEndPointFromInsideContainer.sh
this script gives an example of service discovery using the kubernetes api
More info :