apiVersion: irc.now/v1alpha1
kind: WebService
metadata:
  name: txt
  namespace: irc-josie-cloud
spec:
  image: image-registry.openshift-image-registry.svc:5000/irc-josie-cloud/txt:latest
  host: txt.irc.now
  tls:
    issuerRef:
      name: letsencrypt-prod
      kind: ClusterIssuer
    dnsNames:
      - txt.irc.now
  resources:
    requests:
      memory: "64Mi"
      cpu: "50m"
    limits:
      memory: "256Mi"
      cpu: "500m"
  database:
    secretRef: paste-db-app
    host: paste-db-rw.irc-josie-cloud
    name: paste
    envPrefix: PASTE_DB
  oidc:
    issuerUrl: https://auth.irc.now/realms/irc-now
    secretRef: oidc-paste
    redirectUrl: https://txt.irc.now/auth/callback
