apiVersion: v1
kind: Service
metadata:
  labels:
    name: tor-proxy
  name: tor-proxy
spec:
  type: NodePort
  ports:
    - port: 18118
      nodePort: 30118
      targetPort: 8118
      protocol: TCP
  # just like the selector in the replication controller,
  # but this time it identifies the set of pods to load balance
  # traffic to.
  selector:
    app: tor-proxy
