apiVersion: v1
kind: Service
metadata:
  name: api
  labels:
    app: bookmarks
    tier: api
spec:
  # comment or delete the following line if you want to use a LoadBalancer
  type: NodePort 
  # if your cluster supports it, uncomment the following to automatically create
  # an external load-balanced IP for the api service.
  # type: LoadBalancer
  ports:
  - protocol: TCP
    port: 80
    targetPort: 80
    nodePort: 30001
  selector:
    app: bookmarks
    tier: api
