apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
  creationTimestamp: "2026-03-29T02:11:10Z"
  generation: 1
  labels:
    app: rook-ceph-crashcollector
    ceph-version: 18.2.7-0
    ceph_daemon_id: crash
    crashcollector: crash
    kubernetes.io/hostname: instance
    node_name: instance
    rook-version: v1.15.9
    rook_cluster: openstack
  name: rook-ceph-crashcollector-instance
  namespace: openstack
  ownerReferences:
  - apiVersion: ceph.rook.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: CephCluster
    name: ceph
    uid: 5d8856ab-d676-4585-a5a3-9ab4c63fa5e9
  resourceVersion: "9292"
  uid: 8a9a1d9d-f96e-4103-b7ef-5d84370dfaa5
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: rook-ceph-crashcollector
      kubernetes.io/hostname: instance
      node_name: instance
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: rook-ceph-crashcollector
        ceph-version: 18.2.7-0
        ceph_daemon_id: crash
        crashcollector: crash
        kubernetes.io/hostname: instance
        node_name: instance
        rook_cluster: openstack
    spec:
      containers:
      - command:
        - ceph-crash
        env:
        - name: CONTAINER_IMAGE
          value: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7
        - 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
        - name: CEPH_ARGS
          value: -m $(ROOK_CEPH_MON_HOST) -k /etc/ceph/crash-collector-keyring-store/keyring
        image: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7
        imagePullPolicy: IfNotPresent
        name: ceph-crash
        resources:
          limits:
            memory: 60Mi
          requests:
            cpu: 100m
            memory: 60Mi
        securityContext:
          privileged: false
          runAsGroup: 167
          runAsUser: 167
        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: /var/log/ceph
          name: rook-ceph-log
        - mountPath: /var/lib/ceph/crash
          name: rook-ceph-crash
        - mountPath: /etc/ceph/crash-collector-keyring-store/
          name: rook-ceph-crash-collector-keyring
          readOnly: true
      dnsPolicy: ClusterFirst
      initContainers:
      - args:
        - /var/lib/ceph/crash/posted
        command:
        - mkdir
        - -p
        image: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7
        imagePullPolicy: IfNotPresent
        name: make-container-crash-dir
        resources:
          limits:
            memory: 60Mi
          requests:
            cpu: 100m
            memory: 60Mi
        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: /var/log/ceph
          name: rook-ceph-log
        - mountPath: /var/lib/ceph/crash
          name: rook-ceph-crash
      - args:
        - --verbose
        - --recursive
        - ceph:ceph
        - /var/log/ceph
        - /var/lib/ceph/crash
        - /run/ceph
        command:
        - chown
        image: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7
        imagePullPolicy: IfNotPresent
        name: chown-container-data-dir
        resources:
          limits:
            memory: 60Mi
          requests:
            cpu: 100m
            memory: 60Mi
        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: /var/log/ceph
          name: rook-ceph-log
        - mountPath: /var/lib/ceph/crash
          name: rook-ceph-crash
      nodeSelector:
        kubernetes.io/hostname: instance
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: rook-ceph-default
      serviceAccountName: rook-ceph-default
      terminationGracePeriodSeconds: 30
      tolerations:
      - effect: NoExecute
        key: node.kubernetes.io/not-ready
        operator: Exists
        tolerationSeconds: 300
      - 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
      - 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
      - name: rook-ceph-crash-collector-keyring
        secret:
          defaultMode: 420
          secretName: rook-ceph-crash-collector-keyring
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-03-29T02:11:15Z"
    lastUpdateTime: "2026-03-29T02:11:15Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-03-29T02:11:10Z"
    lastUpdateTime: "2026-03-29T02:11:15Z"
    message: ReplicaSet "rook-ceph-crashcollector-instance-754c646bfd" has successfully
      progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
