go-cloud-k8s-shell

module
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: MIT

README

go-cloud-k8s-shell

Security Rating Reliability Rating Maintainability Rating cve-trivy-scan codecov Go Test

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 :

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL