apiVersion: v1
kind: Service
metadata:
  name: posts-srv # service name
spec:
  type: NodePort # service type
  selector:
    app: posts # find all pods w/ label = posts (comes frrom *-depl)
  ports: # array entry is -
    - name: posts # this is for loggin purpouses
      protocol: TCP
      port: 4000 # this is the port exposed to the world
      targetPort: 4000 # pod's port (the one in the container)
