apiVersion: apps/v1
kind: Deployment
metadata:
  name: soju-operator
  namespace: irc-josie-cloud
  labels:
    app.kubernetes.io/name: soju-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: soju-operator
  template:
    metadata:
      labels:
        app.kubernetes.io/name: soju-operator
    spec:
      serviceAccountName: soju-operator
      containers:
        - name: operator
          image: image-registry.openshift-image-registry.svc:5000/irc-josie-cloud/soju-operator:latest
          env:
            - name: SOJU_DB_MASTER_URI
              valueFrom:
                secretKeyRef:
                  name: soju-operator-db
                  key: uri
            - name: SOJU_DB_HOST
              valueFrom:
                secretKeyRef:
                  name: soju-operator-db
                  key: host
            - name: SOJU_DB_PORT
              valueFrom:
                secretKeyRef:
                  name: soju-operator-db
                  key: port
          resources:
            requests:
              memory: "64Mi"
              cpu: "50m"
            limits:
              memory: "128Mi"
              cpu: "200m"
