load-balancer.yaml 713 B

123456789101112131415161718192021222324252627282930
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. labels:
  5. app.kubernetes.io/component: core
  6. app.kubernetes.io/instance: $DEPLOYMENT
  7. app.kubernetes.io/managed-by: Helm
  8. app.kubernetes.io/name: neo4j
  9. statefulset.kubernetes.io/pod-name: $DEPLOYMENT-neo4j-core-$IDX
  10. name: $DEPLOYMENT-neo4j-external-$IDX
  11. spec:
  12. loadBalancerIP: $IP
  13. externalTrafficPolicy: Local
  14. ports:
  15. - name: bolt
  16. port: 7687
  17. protocol: TCP
  18. targetPort: 7687
  19. - name: http
  20. port: 7474
  21. protocol: TCP
  22. targetPort: 7474
  23. - name: https
  24. port: 7473
  25. protocol: TCP
  26. targetPort: 7473
  27. selector:
  28. statefulset.kubernetes.io/pod-name: $DEPLOYMENT-neo4j-core-$IDX
  29. sessionAffinity: None
  30. type: LoadBalancer