apiVersion: v1
kind: Service
metadata:
  name: webapp-service
spec:
  type: NodePort
  ports:
    - targetPort: 8080    # port on target container
      port: 8080          # port on service
      nodePort: 30080   # port on node
  selector:
    name: simple-webapp