apiVersion: v1
kind: Service
metadata:
  name: service-document
  namespace: mineco-dev
  labels:
    app.kubernetes.io/name: documentos
    app.kubernetes.io/part-of: documentos
  annotations:
    metallb.universe.tf/address-pool: production-public-ips
spec:
  type: LoadBalancer
  externalIPs:
  - 128.5.9.77
  # type: NodePort
  ports:
    - name: http
      port: 80
      targetPort: 80
      protocol: TCP
    #   nodePort: 32000
    - name: smtp
      port: 25
      targetPort: 25
      protocol: TCP
    - name: smtp-587
      port: 587
      targetPort: 587
      protocol: TCP
    # - name: https
    #   port: 443
    #   targetPort: 443
    #   protocol: TCP
  selector:
    run: laravel-documentos

# apiVersion: v1
# kind: Service
# metadata:
#   name: laravel-documentos
#   namespace: mineco-cluster
#   labels:
#     app: backend
# spec:
#   type: NodePort
#   selector:
#     run: laravel-documentos
#   ports:
#     - port: 443
#       targetPort: 443
#       nodePort: 31000
#     # - port: 80
#     #   targetPort: 80
#     #   nodePort: 31000
#     # - port: 443
#     #   containerPort: 443
#     #   protocol: TCP