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