kubernetes:尽管Pod健康,但服务仍无法访问

时间:2019-09-04 11:47:25

标签: kubernetes istio

我有以下➢ k get svc faros-web -o yaml apiVersion: v1 kind: Service metadata: name: faros-web namespace: mynamespace clusterIP: 10.8.49.178 ports: - name: http port: 5000 protocol: TCP targetPort: 5000 selector: app: faros-web-primary sessionAffinity: None type: ClusterIP status: loadBalancer: {}

Service

以下是与faros-web-primary-5b5c4f9475-j9tn6 2/2 Running 5 16m ➢ k get pod faros-web-primary-5b5c4f9475-j9tn6 -o yaml | grep -i label -C 2 labels: app: faros-web-primary 的选择器相对应的广告连播:

user@faros-worker-5ddfd69c64-wnh2f:~/app$ curl http://faros-web:5000
upstream connect error or disconnect/reset before headers. reset reason: connection termination
user@faros-worker-5ddfd69c64-wnh2f:~/app$
user@faros-worker-5ddfd69c64-wnh2f:~/app$ curl http://faros-web
upstream connect error or disconnect/reset before headers. reset reason: connection failure

但是从同一命名空间中的另一个Pod:

k8s 1.12

在GKE和istio 1.1.14上使用export const pageQuery = graphql` coverImage: file(relativePath: { eq: "coverImage.png" }) { childImageSharp { fluid(maxWidth: 600) { ...GatsbyImageSharpFluid_tracedSVG } } } }`

0 个答案:

没有答案