Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pumba: update docker image to version 0.6.5 #969

Closed
LaumiH opened this issue Dec 2, 2019 · 1 comment
Closed

pumba: update docker image to version 0.6.5 #969

LaumiH opened this issue Dec 2, 2019 · 1 comment
Labels
Milestone

Comments

@LaumiH
Copy link
Member

LaumiH commented Dec 2, 2019

The idea is to update the pumba docker image used in different experiements, because new functionality comes with newer pumba versions, like netem corrupt and duplicate command added, run netem in parallel on multiple containers.

The drawback: the execution logic changed with pumba version 0.6, as described here. The problem is that e.g. the kubectl exec ... -- pumba kill command would not work any more because the pumba docker container is now only a scratch image only containing the pumba binary.

New pumba is executed passing several args while creating the daemonset, like

containers:
      - image: gaiaadm/pumba:0.6.5
        imagePullPolicy: Always
        name: pumba
        # Pumba command: modify it to suite your needs
        # example: kill myserver container on minikube every 60 seconds
        # find out re2 regex string with minikube ssh; docker ps | grep myserver
        args:
          - --interval
          - "1m"
          - kill
          - --signal
          - "SIGKILL"
          - re2:k8s_myserver_myserver-6c8c7c8d9f-hqh2r

The args would have to be generated/ retrieved from the sepcific experiment before deploying the daemonset. As of today, pumba is first started in dry-run mode and then given the exact command to execute via kubectl exec.

@ksatchit
Copy link
Member

The network chaos experiments using pumba have been moved to 0.6.5, while also creating a pattern by which the args can be burned into a pumba resource (job) before deploying it as required by the new image. The container-kill experiment continues to be used with pumba:0.4.8, which will be changed in subsequent releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants