server中不能关联endpoints
来源:3-6 service网络实现原理
慕慕4401115
2019-04-29
我是按照老师的步骤一步一步来的,但是到这儿就有问题了
写回答
1回答
-
亲,service match的deployment中的pod是在之前的章节中创建的:
apiVersion: apps/v1
kind: Deployment
metadata:
# Unique key of the Deployment instance
name: deployment-example
spec:
# 3 Pods should exist at all times.
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
# Apply this label to pods and default
# the Deployment label selector to this value
app: nginx
spec:
containers:
- name: nginx
# Run this image
image: nginx:1.10
你确认一下,你创建的deployment是这样的么?
012019-05-06
相似问题