无法从Azure Kubernetes Service中的另一个Pod访问Pod

时间:2020-02-06 10:05:18

标签: kubernetes azure-aks kubernetes-pod azure-kubernetes

我在Pod A中部署了一个应用程序,在Pod B中部署了另一个应用程序

apiVersion: v1
kind: Service
metadata:
  name: product
spec:
  type: ClusterIP
  ports:
  - port: 80
    targetPort: 80
    protocol: TCP
    name: http
  selector:
    app: product-api

apiVersion: v1
kind: Service
metadata:
  name: webbff
spec:
  type: ClusterIP
  ports:
    - port: 80
      targetPort: 80
      protocol: TCP
      name: http
  selector:
    app: webbff-api

在webbff服务中,我已经写了URL http://product来访问产品服务。但是我无法访问

0 个答案:

没有答案