NoMatchingWorkloadsFound

    1. kind: AuthorizationPolicy
    2. metadata:
    3. name: httpbin-nopods
    4. namespace: httpbin
    5. spec:
    6. selector:
    7. app: bogus-label # Bogus label. No matching workloads
    8. rules:
    9. - from:
    10. - source:
    11. principals: ["cluster.local/ns/default/sa/sleep"]
    12. - source:
    13. namespaces: ["httpbin"]
    14. to:
    15. paths: ["/info*"]
    16. - operation:
    17. methods: ["POST"]
    18. paths: ["/data"]
    19. when:
    20. - key: request.auth.claims[iss]
    21. values: ["https://accounts.google.com"]

    How to resolve

    • Change the selector to match the pods you have