friendsofgo / killgrave

Simple way to generate mock servers written in Go
https://friendsofgo.github.io/killgrave/
MIT License
511 stars 96 forks source link

Deploying killgrave in kubernetes ecosystem #131

Closed medlouati closed 1 year ago

medlouati commented 1 year ago

Hi, I'm trying to deploy killgrave in a pod on a kubernetes (Tanzu) plateform. It deploys well with the following logs : 2022/10/18 13:42:53 imposter /etc/killgrave/imposters/..2022_10_18_13_42_52.903949163/gopher.imp.json loaded 2022/10/18 13:42:53 imposter /etc/killgrave/imposters/gopher.imp.json loaded 2022/10/18 13:42:53 The fake server is on tap now: 0.0.0.0:3000

But any http call from outside the container ends up in a time out. Here's a call from a pod in the same namespace. My service maps the 300035 as a NodePort to the 3000 by the way : bash-4.2$ curl -kv -H "Content-Type: text/json" mos-mock-ged.mos.svc.cluster.local:30035/gophers

Is there any subtelty in the configuration other than the host : 0.0.0.0 configuration I should try ?

medlouati commented 1 year ago

The problem was on my part... Killgrave works just fine ! (though the PoC of Prism was more conclusive for my company for its swagger handling)

joanlopez commented 1 year ago

The problem was on my part... Killgrave works just fine !

Glad to read that @medlouati :)

(though the PoC of Prism was more conclusive for my company for its swagger handling)

Do you mean something like https://github.com/friendsofgo/killgrave/pull/116 ?

Thanks!