consul-server-service.yaml 787 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: consul-server
  5. labels:
  6. name: consul-server
  7. spec:
  8. selector:
  9. name: consul-server
  10. ports:
  11. - name: http
  12. port: 8500
  13. targetPort: 8500
  14. - name: https
  15. port: 8443
  16. targetPort: 8443
  17. - name: rpc
  18. port: 8400
  19. targetPort: 8400
  20. - name: serf-lan-tcp
  21. protocol: "TCP"
  22. port: 8301
  23. targetPort: 8301
  24. - name: serf-lan-udp
  25. protocol: "UDP"
  26. port: 8301
  27. targetPort: 8301
  28. - name: serf-wan-tcp
  29. protocol: "TCP"
  30. port: 8302
  31. targetPort: 8302
  32. - name: serf-wan-udp
  33. protocol: "UDP"
  34. port: 8302
  35. targetPort: 8302
  36. - name: server
  37. port: 8300
  38. targetPort: 8300
  39. - name: consul-dns
  40. port: 8600
  41. targetPort: 8600