apiVersion: v1
kind: Service
metadata:
  name: my-service
  labels:
    app: my-devops-project
spec:
  selector:
    app: my-devops-project
  type: LoadBalancer
  ports:
    - port: 8080
      targetPort: 8080
      nodePort: 31200
