apiVersion: v1
kind: Service
metadata:
  name: nginx
spec:
  selector:
    app: nginx
  type: NodePort
  ports:
  - port: 80
#   nodePort is not required. If not provided Port will be assigned automatically.
    nodePort: 8080
