apiVersion: apps/v1
kind: DaemonSet
metadata:
  annotations:
    deprecated.daemonset.template.generation: "1"
  creationTimestamp: "2026-06-10T07:53:57Z"
  generation: 1
  labels:
    application: ceph-exporter
  name: ceph-exporter
  namespace: monitoring
  resourceVersion: "3594"
  uid: 1cfe5934-d9f2-46d8-a724-d6066876771d
spec:
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      application: ceph-exporter
  template:
    metadata:
      creationTimestamp: null
      labels:
        application: ceph-exporter
    spec:
      containers:
      - args:
        - -n
        - client.admin
        - -d
        - --sock-dir=/var/run/ceph
        - --addrs=0.0.0.0
        - --port=9926
        - --prio-limit=5
        - --stats-period=5
        command:
        - /usr/bin/ceph-exporter
        image: harbor.atmosphere.dev/quay.io/ceph/ceph:v18.2.7
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /metrics
            port: metrics
            scheme: HTTP
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 5
        name: ceph-exporter
        ports:
        - containerPort: 9926
          name: metrics
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /metrics
            port: metrics
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        resources:
          limits:
            memory: 512Mi
          requests:
            cpu: 100m
            memory: 128Mi
        securityContext:
          runAsGroup: 0
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/ceph
          name: ceph-config
          readOnly: true
        - mountPath: /var/run/ceph
          name: ceph-sockets
      dnsPolicy: ClusterFirst
      nodeSelector:
        ceph: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
      volumes:
      - hostPath:
          path: /etc/ceph
          type: Directory
        name: ceph-config
      - hostPath:
          path: /var/run/ceph/4837cbf8-4f90-4300-b3f6-726c9b9f89b4
          type: Directory
        name: ceph-sockets
  updateStrategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
    type: RollingUpdate
status:
  currentNumberScheduled: 1
  desiredNumberScheduled: 1
  numberMisscheduled: 0
  numberReady: 0
  numberUnavailable: 1
  observedGeneration: 1
  updatedNumberScheduled: 1
