apiVersion: v1
kind: Service
metadata:
  name:  web
spec:
  selector:
    app:  nginx
  # type:  LoadBalancer | ClusterIP | NodePort
  ports:
  -  port:  80
  # - name:  ame-of-the-port
    # targetPort:  8080