apiVersion: v1
kind: Service
metadata:
  name: nats
spec:
  type: NodePort
  selector:
    app.kubernetes.io/name: nats
  ports:
    - port: 4222
      name: nats
      targetPort: 4222
      nodePort: 32225
    - port: 7422
      name: leafnodes
      targetPort: 7422
      nodePort: 32226
    - port: 7522
      name: gateways
      targetPort: 7522
      nodePort: 32227