apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-production
    nginx.ingress.kubernetes.io/backend-protocol: HTTP
    nginx.ingress.kubernetes.io/enable-cors: "true"
    nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    oceanbox.io/expose: internal
  labels:
    app.kubernetes.io/component: keycloak
    app.kubernetes.io/instance: prod-keycloak
    app.kubernetes.io/name: keycloak
    app.kubernetes.io/version: 26.0.2
  name: prod-keycloak-admin
  namespace: keycloak
spec:
  ingressClassName: nginx
  rules:
  - host: auth.oceanbox.io
    http:
      paths:
      - backend:
          service:
            name: prod-keycloak
            port:
              name: http
        path: /admin
        pathType: ImplementationSpecific
  - host: keycloak.adm.oceanbox.io
    http:
      paths:
      - backend:
          service:
            name: prod-keycloak
            port:
              name: http
        path: /admin
        pathType: ImplementationSpecific
  tls:
  - hosts:
    - auth.oceanbox.io
    - keycloak.adm.oceanbox.io
    secretName: keycloak.adm.oceanbox.io-tls

