apiVersion: v1
kind: Service
metadata:
  name: spark-thrift-server-headless-service
  namespace: default
spec:
  selector:
    app: spark-thrift-server
  clusterIP: "None"
  ports: 
  - port: 1888
    targetPort: 1888