load-balancer.yaml 688 B

12345678910111213141516171819202122232425262728293031
  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. name: $DEPLOYMENT-neo4j-external
  10. spec:
  11. loadBalancerIP: $IP
  12. externalTrafficPolicy: Local
  13. ports:
  14. - name: bolt
  15. port: 7687
  16. protocol: TCP
  17. targetPort: 7687
  18. - name: http
  19. port: 7474
  20. protocol: TCP
  21. targetPort: 7474
  22. - name: https
  23. port: 7473
  24. protocol: TCP
  25. targetPort: 7473
  26. selector:
  27. app.kubernetes.io/name: neo4j
  28. app.kubernetes.io/instance: $DEPLOYMENT
  29. app.kubernetes.io/component: core
  30. sessionAffinity: None
  31. type: LoadBalancer