apiVersion: v1
kind: Service
metadata:
  name: spalabfinal-restapi
  labels:
    app: spalabfinalexam
    tier: restapi
spec:
  type: LoadBalancer
  ports:
  - port: 80
    targetPort: http-server
  selector:
    app: spalabfinalexam
    tier: restapi