statefulset里的pod如果不ready就ping不通对方

  sre

6038d277831b51632.jpg_fo742.jpg
加上unready容忍即可:

apiVersion: v1
kind: Service
metadata:
  name: nacos-headless
  namespace: quant
  labels:
    app: nacos
  annotations:
    service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
  ports:
    - port: 8848

LEAVE A COMMENT

Captcha Code