Service > Headless

apiVersion: v1
kind: Service
metadata:
  name: myservice
spec:
  clusterIP: None # this is the magic !
  selector:
    app: myclusteringapp # ex: elasticsearch
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 8080

official documentation