apiVersion: irc.josie.cloud/v1alpha1
kind: WebService
metadata:
  name: pics
  namespace: irc-josie-cloud
spec:
  image: image-registry.openshift-image-registry.svc:5000/irc-josie-cloud/pics:latest
  host: irc.pics
  tls:
    issuerRef:
      name: letsencrypt-prod
      kind: ClusterIssuer
    dnsNames:
      - irc.pics
  resources:
    requests:
      memory: "128Mi"
      cpu: "50m"
    limits:
      memory: "512Mi"
      cpu: "500m"
  database:
    secretRef: pics-db-app
    host: pics-db-rw.irc-josie-cloud
    name: pics
    envPrefix: PICS_DB
  oidc:
    issuerUrl: https://auth.irc.now/realms/irc-now
    secretRef: oidc-pics
    redirectUrl: https://irc.pics/auth/callback
  s3:
    endpoint: http://minio.irc-josie-cloud:9000
    bucket: pics
    credentialsSecret: minio-credentials
