apiVersion: v1
kind: Service
metadata:
  name: service-rgm-glassfish
  namespace: mineco
  labels:
    app.kubernetes.io/name: rgm-inventario
    app.kubernetes.io/part-of: rgm-inventario
  # annotations:
  #   metallb.universe.tf/address-pool: production-public-ips
spec:
  type: LoadBalancer
  externalIPs:
  - 128.5.9.76
  ports:
    - name: http
      protocol: TCP
      port: 8282
    - name: my-port
      protocol: TCP
      port: 8181
      targetPort: 8181
    # - name: my-port-80
    #   protocol: TCP
    #   port: 80
    - name: https
      port: 4848
      targetPort: 4848
      protocol: TCP
    # - name: https
    #   port: 8181
    #   targetPort: 8181
    #   protocol: TCP
  selector:
    run: rgm-inventario