codecentric / chaos-monkey-spring-boot

Chaos Monkey for Spring Boot
https://codecentric.github.io/chaos-monkey-spring-boot/
Apache License 2.0
909 stars 170 forks source link

Provide sidecar container for k8 usage (and document it) #288

Open WtfJoke opened 2 years ago

WtfJoke commented 2 years ago

I made tests using kubernetes and chaos monkey can be used that way. In order to use that we should publish a sidecar container for public use and publish it in docker hub/github container registry

See example https://github.com/WtfJoke/chaoskotlindemo/commit/2fef52a904faed9e78f794eb873e4a0b23aed645

checketts commented 2 years ago

Sidecars are useful when you can't include it as a library. Is that the goal? To use chaosmonkey features with node or go apps?

WtfJoke commented 2 years ago

Sidecars are useful when you can't include it as a library. Is that the goal?

Yes, the current extjar would be provided as as a docker image which can be used as a sidecar for an existing spring application.

Usecase: Imagine somebody has their app deployed in a k8 cluster and wants to use chaos monkey, but dont want to include it as dependency. They would need to do it with an external jar. However to do that they need that jar in a container. So theywould need to build a container which includes the chaos monkey ext jar, it would be better if we provide it and they can use it.

To use chaosmonkey features with node or go apps?

I dont know what you mean with this (we can only assault spring boot apps with jvm languages) 😅

checketts commented 2 years ago

Oh I see. The sidecar isn't a process that is used, just a mechanism to add files (the jar)

checketts commented 2 years ago

To use chaosmonkey features with node or go apps?

I dont know what you mean with this (we can only assault spring boot apps with jvm languages) 😅

Which is why I was confused. Thanks for clarifying it for me.