apiVersion: v1
kind: Service
metadata:
  # Unique key of the Service instance
  name: webapp
spec:
  ports:
    # Accept traffic sent to port 80
    - name: http
      port: 80
      nodePort: 30080
  selector:
    # Loadbalance traffic across Pods matching
    # this label selector
    myApp: webapp
  # Create an HA proxy in the cloud provider
  # with an External IP address - *Only supported
  # by some cloud providers*
  type: NodePort