apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    banzaicloud.com/last-applied: UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAb3JpZ2luYWzsewtT4zi2/1fRavgX01txSHg0kKnU/7KQ7klNk3ATuHPndqiUYh/bWmTJI8kJGZbvfutItpNAoLtn9tbOVlHdRYF0dHQeP52HLT/QDCyLmGW080AFm4Ew+BvLc9qhWqm7IIQ8DXSyoA0cbd4VM9ASLJgmV3uhynIlQVraoUioZn+H0BqrNJgmDjSRR5Or7as1MAtRMFtubKZy0MwqvXUNl8YyGUK54VaajEmWfCNfybKK54va5kzbQMWrrR31HLThStIObZ8095snQaucmUYMMiWnPNpcUY3bZY5b+t3wZ03lZF7xnbeb7aPmaTmBklSqBCi2yZmzR61pSTgNRWEsaNqhKge0W3hXTXlHTZ2nqn0fG7S0wobj/S+M+tlqs3WOaiFBjyAGDTIEQzufEUH8v2oF1pGwN2/TBp0JFd4Ncd0FCLCOzOoCGjRU0molBMrtR+64RAueQ54OndhjJ3Utbaly4ex8cBxHJzPWDo6i9nFw2I6Og9lh9D5oMwazg6P4pNU6pY+3jw1qcggR6xpywUNmaKfdoAYEhIiRzgPNmA3TT184Ey85+pk/v9kbKKLVzEKydGIqIbhMbvKIWfDi3d9INmdcsJkA2mk/NmgJqdEGLY5Dlotq3duJ/2Mn/o+d63/V8V1DPItjLrl1sJIqgrO1vzX8WnAN0UWhuUzGYQpRgVjqJ1LVw717CAt/aD2HcXlsrkFn/vy7w9O7zzUYDAJ+8A6W69oE5VkPcsEkHujaXx3al7RB50wULp5QkAjyiN4+4r/HBs1VdCYtXxc91xiCvkH2zw+OTckCZa/PxPhPFQesypVQyfInZ79NiKbKWOf3xwZdAE9SSztHLW8ktC/jEnQZk3XijBkEseFR9/Dk4DicxSfBYXzaCg4PWq1gdhC/D47334ens9P45HR2SBs0CO5giZbr7oEN91CovXIkcJJWfznaCGJWCBsIlQRWBcZGoHUXA/nGNGj92nSmZFDa6UuccNrP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
  creationTimestamp: "2026-10-19T02:14:35Z"
  generation: 1
  labels:
    app: rook-ceph-rgw
    app.kubernetes.io/component: cephobjectstores.ceph.rook.io
    app.kubernetes.io/created-by: rook-ceph-operator
    app.kubernetes.io/instance: ceph
    app.kubernetes.io/managed-by: rook-ceph-operator
    app.kubernetes.io/name: ceph-rgw
    app.kubernetes.io/part-of: ceph
    ceph-version: 18.2.8-0
    ceph_daemon_id: ceph
    ceph_daemon_type: rgw
    rgw: ceph
    rook-version: v1.15.9
    rook.io/operator-namespace: rook-ceph
    rook_cluster: openstack
    rook_object_store: ceph
  name: rook-ceph-rgw-ceph-a
  namespace: openstack
  ownerReferences:
  - apiVersion: ceph.rook.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: CephObjectStore
    name: ceph
    uid: 37fd8ba1-5d17-41d7-b4d6-1aaeb35f8009
  resourceVersion: "9908"
  uid: a6fa4d8d-af13-4de2-a51e-761b4f0c7ab6
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: rook-ceph-rgw
      ceph_daemon_id: ceph
      rgw: ceph
      rook_cluster: openstack
      rook_object_store: ceph
  strategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: rook-ceph-rgw
        app.kubernetes.io/component: cephobjectstores.ceph.rook.io
        app.kubernetes.io/created-by: rook-ceph-operator
        app.kubernetes.io/instance: ceph
        app.kubernetes.io/managed-by: rook-ceph-operator
        app.kubernetes.io/name: ceph-rgw
        app.kubernetes.io/part-of: ceph
        ceph_daemon_id: ceph
        ceph_daemon_type: rgw
        rgw: ceph
        rook.io/operator-namespace: rook-ceph
        rook_cluster: openstack
        rook_object_store: ceph
      name: rook-ceph-rgw-ceph-a
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: openstack-control-plane
                operator: In
                values:
                - enabled
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchLabels:
                  app: rook-ceph-rgw
                  ceph_daemon_id: ceph
                  rgw: ceph
                  rook_cluster: openstack
                  rook_object_store: ceph
              topologyKey: kubernetes.io/hostname
            weight: 50
      containers:
      - args:
        - --fsid=4837cbf8-4f90-4300-b3f6-726c9b9f89b4
        - --keyring=/etc/ceph/keyring-store/keyring
        - --default-log-to-stderr=true
        - --default-err-to-stderr=true
        - --default-mon-cluster-log-to-stderr=true
        - '--default-log-stderr-prefix=debug '
        - --default-log-to-file=false
        - --default-mon-cluster-log-to-file=false
        - --mon-host=$(ROOK_CEPH_MON_HOST)
        - --mon-initial-members=$(ROOK_CEPH_MON_INITIAL_MEMBERS)
        - --id=rgw.ceph.a
        - --setuser=ceph
        - --setgroup=ceph
        - --foreground
        - --rgw-frontends=beast port=8080
        - --host=$(POD_NAME)
        - --rgw-mime-types-file=/etc/ceph/rgw/mime.types
        - --rgw-realm=ceph
        - --rgw-zonegroup=ceph
        - --rgw-zone=ceph
        command:
        - radosgw
        env:
        - name: CONTAINER_IMAGE
          value: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7@sha256:1b9158ce28975f95def6a0ad459fa19f1336506074267a4b47c1bd914a00fec0
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        - name: NODE_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: spec.nodeName
        - name: POD_MEMORY_LIMIT
          valueFrom:
            resourceFieldRef:
              divisor: "0"
              resource: limits.memory
        - name: POD_MEMORY_REQUEST
          valueFrom:
            resourceFieldRef:
              divisor: "0"
              resource: requests.memory
        - name: POD_CPU_LIMIT
          valueFrom:
            resourceFieldRef:
              divisor: "1"
              resource: limits.cpu
        - name: POD_CPU_REQUEST
          valueFrom:
            resourceFieldRef:
              divisor: "0"
              resource: requests.cpu
        - name: CEPH_USE_RANDOM_NONCE
          value: "true"
        - name: ROOK_MSGR2
          value: msgr2_false_encryption_false_compression_false
        - name: ROOK_CEPH_MON_HOST
          valueFrom:
            secretKeyRef:
              key: mon_host
              name: rook-ceph-config
        - name: ROOK_CEPH_MON_INITIAL_MEMBERS
          valueFrom:
            secretKeyRef:
              key: mon_initial_members
              name: rook-ceph-config
        image: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7@sha256:1b9158ce28975f95def6a0ad459fa19f1336506074267a4b47c1bd914a00fec0
        imagePullPolicy: IfNotPresent
        name: rgw
        readinessProbe:
          exec:
            command:
            - bash
            - -c
            - |
              #!/usr/bin/env bash

              PROBE_TYPE="readiness"
              PROBE_PORT="8080"
              PROBE_PROTOCOL="HTTP"

              # standard bash codes start at 126 and progress upward. pick error codes from 125 downward for
              # script as to allow curl to output new error codes and still return a distinctive number.
              USAGE_ERR_CODE=125
              PROBE_ERR_CODE=124
              # curl error codes: 1-123

              STARTUP_TYPE='startup'
              READINESS_TYPE='readiness'

              RGW_URL="$PROBE_PROTOCOL://0.0.0.0:$PROBE_PORT"

              function check() {
                local URL="$1"
                # --insecure - don't validate ssl if using secure port only
                # --silent - don't output progress info
                # --output /dev/stderr - output HTML header to stdout (good for debugging)
                # --write-out '%{response_code}' - print the HTTP response code to stdout
                curl --insecure --silent --output /dev/stderr --write-out '%{response_code}' "$URL"
              }

              http_response="$(check "$RGW_URL")"
              retcode=$?

              if [[ $retcode -ne 0 ]]; then
                # if this is the startup probe, always returning failure. if startup probe passes, all subsequent
                # probes can rely on the assumption that the health check was once succeeding without errors.
                # if this is the readiness probe, we know that curl was previously working correctly in the
                # startup probe, so curl error most likely means some new error with the RGW.
                echo "RGW health check failed with error code: $retcode. the RGW likely cannot be reached by clients" >/dev/stderr
                exit $retcode
              fi

              RGW_RATE_LIMITING_RESPONSE=503
              RGW_MISCONFIGURATION_RESPONSE=500

              if [[ $http_response -ge 200 ]] && [[ $http_response -lt 400 ]]; then
                # 200-399 are successful responses. same behavior as Kubernetes' HTTP probe
                exit 0

              elif [[ $http_response -eq $RGW_RATE_LIMITING_RESPONSE ]]; then
                # S3's '503: slow down' code is not an error but an indication that RGW is throttling client
                # traffic. failing the readiness check here would only cause an increase in client connections on
                # other RGWs and likely cause those to fail also in a cascade. i.e., a special healthy response.
                echo "INFO: RGW is rate limiting" 2>/dev/stderr
                exit 0

              elif [[ $http_response -eq $RGW_MISCONFIGURATION_RESPONSE ]]; then
                # can't specifically determine if the RGW is running or not. most likely a misconfiguration.
                case "$PROBE_TYPE" in
                "$STARTUP_TYPE")
                  # fail until we can accurately get a valid healthy response when runtime starts.
                  echo 'FAIL: HTTP code 500 suggests an RGW misconfiguration.' >/dev/stderr
                  exit $PROBE_ERR_CODE
                  ;;
                "$READINESS_TYPE")
                  # config likely modified at runtime which could result in all RGWs failing this check.
                  # occasional client failures are still better than total failure, so ignore this
                  echo 'WARN: HTTP code 500 suggests an RGW misconfiguration' >/dev/stderr
                  exit 0
                  ;;
                *)
                  # prior arg validation means this path should never be activated, but keep to be safe
                  echo "ERROR: probe type is unknown: $PROBE_TYPE" >/dev/stderr
                  exit $USAGE_ERR_CODE
                  ;;
                esac

              else
                # anything else is a failing response. same behavior as Kubernetes' HTTP probe
                echo "FAIL: received an HTTP error code: $http_response"
                exit $PROBE_ERR_CODE

              fi
          failureThreshold: 3
          initialDelaySeconds: 10
          periodSeconds: 10
          successThreshold: 3
          timeoutSeconds: 5
        resources: {}
        securityContext:
          privileged: false
        startupProbe:
          exec:
            command:
            - bash
            - -c
            - |
              #!/usr/bin/env bash

              PROBE_TYPE="startup"
              PROBE_PORT="8080"
              PROBE_PROTOCOL="HTTP"

              # standard bash codes start at 126 and progress upward. pick error codes from 125 downward for
              # script as to allow curl to output new error codes and still return a distinctive number.
              USAGE_ERR_CODE=125
              PROBE_ERR_CODE=124
              # curl error codes: 1-123

              STARTUP_TYPE='startup'
              READINESS_TYPE='readiness'

              RGW_URL="$PROBE_PROTOCOL://0.0.0.0:$PROBE_PORT"

              function check() {
                local URL="$1"
                # --insecure - don't validate ssl if using secure port only
                # --silent - don't output progress info
                # --output /dev/stderr - output HTML header to stdout (good for debugging)
                # --write-out '%{response_code}' - print the HTTP response code to stdout
                curl --insecure --silent --output /dev/stderr --write-out '%{response_code}' "$URL"
              }

              http_response="$(check "$RGW_URL")"
              retcode=$?

              if [[ $retcode -ne 0 ]]; then
                # if this is the startup probe, always returning failure. if startup probe passes, all subsequent
                # probes can rely on the assumption that the health check was once succeeding without errors.
                # if this is the readiness probe, we know that curl was previously working correctly in the
                # startup probe, so curl error most likely means some new error with the RGW.
                echo "RGW health check failed with error code: $retcode. the RGW likely cannot be reached by clients" >/dev/stderr
                exit $retcode
              fi

              RGW_RATE_LIMITING_RESPONSE=503
              RGW_MISCONFIGURATION_RESPONSE=500

              if [[ $http_response -ge 200 ]] && [[ $http_response -lt 400 ]]; then
                # 200-399 are successful responses. same behavior as Kubernetes' HTTP probe
                exit 0

              elif [[ $http_response -eq $RGW_RATE_LIMITING_RESPONSE ]]; then
                # S3's '503: slow down' code is not an error but an indication that RGW is throttling client
                # traffic. failing the readiness check here would only cause an increase in client connections on
                # other RGWs and likely cause those to fail also in a cascade. i.e., a special healthy response.
                echo "INFO: RGW is rate limiting" 2>/dev/stderr
                exit 0

              elif [[ $http_response -eq $RGW_MISCONFIGURATION_RESPONSE ]]; then
                # can't specifically determine if the RGW is running or not. most likely a misconfiguration.
                case "$PROBE_TYPE" in
                "$STARTUP_TYPE")
                  # fail until we can accurately get a valid healthy response when runtime starts.
                  echo 'FAIL: HTTP code 500 suggests an RGW misconfiguration.' >/dev/stderr
                  exit $PROBE_ERR_CODE
                  ;;
                "$READINESS_TYPE")
                  # config likely modified at runtime which could result in all RGWs failing this check.
                  # occasional client failures are still better than total failure, so ignore this
                  echo 'WARN: HTTP code 500 suggests an RGW misconfiguration' >/dev/stderr
                  exit 0
                  ;;
                *)
                  # prior arg validation means this path should never be activated, but keep to be safe
                  echo "ERROR: probe type is unknown: $PROBE_TYPE" >/dev/stderr
                  exit $USAGE_ERR_CODE
                  ;;
                esac

              else
                # anything else is a failing response. same behavior as Kubernetes' HTTP probe
                echo "FAIL: received an HTTP error code: $http_response"
                exit $PROBE_ERR_CODE

              fi
          failureThreshold: 33
          initialDelaySeconds: 10
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/ceph
          name: rook-config-override
          readOnly: true
        - mountPath: /run/ceph
          name: ceph-daemons-sock-dir
        - mountPath: /etc/ceph/keyring-store/
          name: rook-ceph-rgw-ceph-a-keyring
          readOnly: true
        - mountPath: /var/log/ceph
          name: rook-ceph-log
        - mountPath: /var/lib/ceph/crash
          name: rook-ceph-crash
        - mountPath: /var/lib/ceph/rgw/ceph-ceph
          name: ceph-daemon-data
        - mountPath: /etc/ceph/rgw
          name: rook-ceph-rgw-ceph-mime-types
          readOnly: true
        workingDir: /var/log/ceph
      - command:
        - /bin/bash
        - -x
        - -e
        - -m
        - -c
        - "\nCEPH_CLIENT_ID=ceph-client.rgw.ceph.a\nPERIODICITY=daily\nLOG_ROTATE_CEPH_FILE=/etc/logrotate.d/ceph\nLOG_MAX_SIZE=500M\nROTATE=7\n\n#
          edit the logrotate file to only rotate a specific daemon log\n# otherwise
          we will logrotate log files without reloading certain daemons\n# this might
          happen when multiple daemons run on the same machine\nsed -i \"s|*.log|$CEPH_CLIENT_ID.log|\"
          \"$LOG_ROTATE_CEPH_FILE\"\n\n# replace default daily with given user input\nsed
          --in-place \"s/daily/$PERIODICITY/g\" \"$LOG_ROTATE_CEPH_FILE\"\n\n# replace
          rotate count, default 7 for all ceph daemons other than rbd-mirror\nsed
          --in-place \"s/rotate 7/rotate $ROTATE/g\" \"$LOG_ROTATE_CEPH_FILE\"\n\nif
          [ \"$LOG_MAX_SIZE\" != \"0\" ]; then\n\t# adding maxsize $LOG_MAX_SIZE at
          the 4th line of the logrotate config file with 4 spaces to maintain indentation\n\tsed
          --in-place \"4i \\ \\ \\ \\ maxsize $LOG_MAX_SIZE\" \"$LOG_ROTATE_CEPH_FILE\"\nfi\n\nwhile
          true; do\n\t# we don't force the logrorate but we let the logrotate binary
          handle the rotation based on user's input for periodicity and size\n\tlogrotate
          --verbose \"$LOG_ROTATE_CEPH_FILE\"\n\tsleep 15m\ndone\n"
        image: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7@sha256:1b9158ce28975f95def6a0ad459fa19f1336506074267a4b47c1bd914a00fec0
        imagePullPolicy: IfNotPresent
        name: log-collector
        resources:
          limits:
            memory: 1Gi
          requests:
            cpu: 100m
            memory: 100Mi
        securityContext:
          privileged: false
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        tty: true
        volumeMounts:
        - mountPath: /etc/ceph
          name: rook-config-override
          readOnly: true
        - mountPath: /run/ceph
          name: ceph-daemons-sock-dir
        - mountPath: /var/log/ceph
          name: rook-ceph-log
        - mountPath: /var/lib/ceph/crash
          name: rook-ceph-crash
      dnsPolicy: ClusterFirst
      initContainers:
      - args:
        - --verbose
        - --recursive
        - ceph:ceph
        - /var/log/ceph
        - /var/lib/ceph/crash
        - /run/ceph
        - /var/lib/ceph/rgw/ceph-ceph
        command:
        - chown
        image: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7@sha256:1b9158ce28975f95def6a0ad459fa19f1336506074267a4b47c1bd914a00fec0
        imagePullPolicy: IfNotPresent
        name: chown-container-data-dir
        resources: {}
        securityContext:
          privileged: false
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/ceph
          name: rook-config-override
          readOnly: true
        - mountPath: /run/ceph
          name: ceph-daemons-sock-dir
        - mountPath: /etc/ceph/keyring-store/
          name: rook-ceph-rgw-ceph-a-keyring
          readOnly: true
        - mountPath: /var/log/ceph
          name: rook-ceph-log
        - mountPath: /var/lib/ceph/crash
          name: rook-ceph-crash
        - mountPath: /var/lib/ceph/rgw/ceph-ceph
          name: ceph-daemon-data
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: rook-ceph-rgw
      serviceAccountName: rook-ceph-rgw
      shareProcessNamespace: true
      terminationGracePeriodSeconds: 30
      tolerations:
      - effect: NoExecute
        key: node.kubernetes.io/unreachable
        operator: Exists
        tolerationSeconds: 5
      volumes:
      - name: rook-config-override
        projected:
          defaultMode: 420
          sources:
          - configMap:
              items:
              - key: config
                mode: 292
                path: ceph.conf
              name: rook-config-override
      - name: rook-ceph-rgw-ceph-a-keyring
        secret:
          defaultMode: 420
          secretName: rook-ceph-rgw-ceph-a-keyring
      - hostPath:
          path: /var/lib/rook/exporter
          type: DirectoryOrCreate
        name: ceph-daemons-sock-dir
      - hostPath:
          path: /var/lib/rook/openstack/log
          type: ""
        name: rook-ceph-log
      - hostPath:
          path: /var/lib/rook/openstack/crash
          type: ""
        name: rook-ceph-crash
      - emptyDir: {}
        name: ceph-daemon-data
      - configMap:
          defaultMode: 420
          name: rook-ceph-rgw-ceph-mime-types
        name: rook-ceph-rgw-ceph-mime-types
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-10-19T02:14:35Z"
    lastUpdateTime: "2026-10-19T02:14:35Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-10-19T02:14:35Z"
    lastUpdateTime: "2026-10-19T02:15:15Z"
    message: ReplicaSet "rook-ceph-rgw-ceph-a-7467bbf99c" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
