Replies: 1 comment 3 replies
-
|
Fixes
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-egress-to-apiserver
namespace: authelia
spec:
podSelector: {}
policyTypes:
- Egress
egress:
- to:
- ipBlock:
cidr: 192.168.47.0/24 # your control‑plane subnet
ports:
- protocol: TCP
port: 6443Adding a “allow all egress” policy (empty |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This may be a misconfiguration or a bug, hence the discussion.
I am running the default Flannel CNI configuration on my Talos cluster, with the new
kubeNetworkPoliciesEnabledoption enabled. Most of the network policies work as expected, however it seems some traffic is being sporadically blocked without an obvious reason.One case is connections to the Kubernetes API from application pods, for example
cnpgdatabases:No firewalls are configured on the host machines, and the failures here are not consistent (i.e. it sometimes works and sometimes doesn't). It looks like the network policy is blocking the established connection for some reason, although I'm not a network expert so maybe I'm misreading it.
Another issue I've noticed:
The formatting is different as I switched to JSON logging and wrote a script to match up the logs for easier inspection. It's not clear to me where these packets are coming from, as they are marked as "external" pods but with an IP address from within the cluster.
Has anyone run into similar issues with the new kube-network-policies integration?
Beta Was this translation helpful? Give feedback.
All reactions