在比较高的版本中就不用使用下面这条命令了,但还是有可能ip之间ping 不同的时候,还有一种可能是master节点和node节点
的时间是不统一的,所以ping不同,如果没有使用时间服务,那就重启一起两台服务器,就可以了
iptables -P FORWARD ACCEPT
创建deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.13
ports:
- containerPort: 80