I have a kubernetes cluster in IBM cloud which has a daemonset and backend pods. I had setup a network policy where backend service can accept daemonset requests. But the daemonset shows Connection Refused
error when sending requests to backend pods. Any idea?
Daemonset yaml
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
name: ds-network-policy
spec:
podSelector:
matchLabels:
component: ds
policyTypes:
- Ingress
Backend yaml
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
name: backend-network-policy
spec:
ingress:
- from:
- podSelector:
matchLabels:
component: ds
podSelector:
matchLabels:
component: backend
policyTypes:
- Ingress