0

我在 IBM 云中有一个 kubernetes 集群,它有一个 daemonset 和后端 pod。我已经设置了一个网络策略,后端服务可以接受守护进程请求。但是在Connection Refused向后端 pod 发送请求时,守护程序集会显示错误。任何想法?

守护进程yaml

apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
  name: ds-network-policy
spec:
  podSelector:
    matchLabels:
      component: ds
  policyTypes:
  - Ingress

后端 yaml

apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
  name: backend-network-policy
spec:
  ingress:
  - from:
    - podSelector:
        matchLabels:
          component: ds
  podSelector:
    matchLabels:
      component: backend
  policyTypes:
  - Ingress
4

0 回答 0