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

Litmus Fault Summary: K8S_PROBE_ERROR #4545

Open
Gurunathan5029 opened this issue Mar 21, 2024 · 0 comments
Open

Litmus Fault Summary: K8S_PROBE_ERROR #4545

Gurunathan5029 opened this issue Mar 21, 2024 · 0 comments

Comments

@Gurunathan5029
Copy link

Gurunathan5029 commented Mar 21, 2024

I am setting up chaos engineering setup using Litmus , I have followed the installation and setup using

https://docs.litmuschaos.io/docs/getting-started/installation

I have tried with K8 pod delete experiment using argo workflow template. The pod is getting deleted and service is coming down but the run chaos fails with K8S_PROBE_ERROR

App Used: Small retail app having checkout, currency and cart service

Steps Followed: [Same Cluster used]

  1. Installed Chaos center in my own GCP under namespace -litmus
  2. Installed test app in my own GCP under namespace - default
  3. Enabled chaos with following following YML file https://github.com/Gurunathan5029/litdemo/blob/main/chaosenable.yml
  4. Setup the k8 probe with

GROUP

VERSION : v1

RESOURCE:

NAMESPACE: default

RESOURCE NAMES

FIELD SELECTOR

LABEL SELECTOR:app=currencyservice

OPERATION: Present

  1. Created experiment with following yml generated yml from chaos center [UI]
  2. Run the experiment and following error thrown
Screenshot 2024-03-21 at 8 31 17 AM Fault Summary:

**K8S_PROBE_ERROR

{"errorCode":"K8S_PROBE_ERROR","phase":"PostChaos","reason":"unable to list the resources with matching selector, err: Pod is forbidden: User "system:serviceaccount:litmus:litmus-admin" cannot list resource "Pod" in API group "" in the namespace "default"","target":"{name: currencyService_PodDeleteProbe}"}**

  1. I tried to debug the permission for litmus-admin
    IT-$ kubectl auth can-i list pods --as=system:serviceaccount:litmus:litmus-admin -n default
    yes
    IT-$ kubectl auth can-i list pods --as=system:serviceaccount:litmus:litmus-admin -n litmus
    yes

I am struck here and not able to proceed further

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

No branches or pull requests

1 participant