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

Network Policy configuration instructions unclear #551

Open
danielguinan1 opened this issue Oct 11, 2023 · 1 comment
Open

Network Policy configuration instructions unclear #551

danielguinan1 opened this issue Oct 11, 2023 · 1 comment

Comments

@danielguinan1
Copy link

When attempting to configure an application's network policy to allow traffic from other pods in the same namespace I added the following from the docs which did not work:

spec:
  networkPolicy:
    namespaceLabels:
      kubernetes.io/metadata.name: example

It was later determined that I needed to have labels set to empty for it to work:

  networkPolicy:
    fromLabels: {}
    namespaceLabels:
      kubernetes.io/metadata.name: acmeair

It would be helpful if there was logic that automatically added fromLabels as empty if missing, or at the very least the docs were updated.
https://www.ibm.com/docs/en/was-liberty/nd?topic=operator-configuration-examples

@danielguinan1
Copy link
Author

fyi @mtamboli

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