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

Add non-root images for all k8s executors for chaos workflows. #421

Closed
ishangupta-ds opened this issue Mar 3, 2021 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@ishangupta-ds
Copy link
Member

Currently all the images require root access to run k8s commands during workflow execution steps, using alpine version of the image can help to resolve the issue.

Replace: lachlanevenson/k8s-kubectl with alpine/k8s:1.18.2

The following block is a part of description obtained by running- kubectl describe pod argowf-chaos-pod-delete-1613893961-2346069701 -n litmus

main:
    Container ID:  docker://363021a6285bca9e528a264dcb841bb6e412d425c8b726d9508bdc571b8a3c71
    Image:         lachlanevenson/k8s-kubectl
    Image ID:      docker-pullable://lachlanevenson/k8s-kubectl@sha256:5ef0345fc57be2dd836b1ac2822b4ca56ad4f0dbe92b4847574bd1bffcac08a5
    Port:          <none>
    Host Port:     <none>
    Command:
      sh
      -c
    Args:
      kubectl apply -f /tmp/pod-delete.yaml -n litmus
    State:          Terminated
      Reason:       ContainerCannotRun
      Message:      OCI runtime create failed: container_linux.go:345: starting container process caused "chdir to cwd (\"/root\") set in config.json failed: permission denied": unknown
      Exit Code:    126
@ksatchit
Copy link
Member

ksatchit commented Mar 5, 2021

Closed via #422

@ksatchit ksatchit closed this as completed Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants