apiVersion: v1
kind: Service
metadata:
  name: presto
  labels:
    app: presto
    presto: coordinator
    component: presto-coordinator
spec:
  ports:
  - name: api
    port: 8080
  - name: metrics
    port: 8082
  selector:
    app: presto
    presto: coordinator

---

apiVersion: v1
kind: Service
metadata:
  name: presto-worker
  labels:
    app: presto
    presto: worker
    component: presto-coordinator
spec:
  ports:
  - name: api
    port: 8080
  - name: metrics
    port: 8082
  selector:
    app: presto
    presto: worker

---

apiVersion: v1
kind: Service
metadata:
  name: presto-nodes
  labels:
    app: presto
spec:
  ports:
  - name: api
    port: 8080
  clusterIP: None
  selector:
    app: presto
