apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: cinder
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-02-27T23:59:07Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: cinder
    component: backup
    release_group: cinder
  name: cinder-backup
  namespace: openstack
  resourceVersion: "11669"
  uid: 73c208ed-1acc-4b1c-a8a4-a6d8e9f15cf6
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: cinder
      component: backup
      release_group: cinder
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: fd0dffb44e1ac92c691a5977f1de682900489a6edf5afcdc1e58a47c2cdea2de
        configmap-etc-hash: 7d23fd9bb771e33c4b0a22ee72074255842f881eaad6c3a51349ba8d43d35cfe
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: cinder
        component: backup
        release_group: cinder
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - cinder
                - key: application
                  operator: In
                  values:
                  - cinder
                - key: component
                  operator: In
                  values:
                  - backup
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/cinder-backup.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/cinder:main@sha256:abbffdab1bddcb6cfbcdcd10d618c53f34f0c72cb81043957c14b3d1abe7c499
        imagePullPolicy: IfNotPresent
        name: cinder-backup
        resources: {}
        securityContext:
          capabilities:
            add:
            - SYS_ADMIN
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /var/log/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /var/lib/cinder/tmp
          name: cinder-tmp
        - mountPath: /tmp/cinder-backup.sh
          name: cinder-bin
          readOnly: true
          subPath: cinder-backup.sh
        - mountPath: /etc/cinder/cinder.conf
          name: cinder-etc
          readOnly: true
          subPath: cinder.conf
        - mountPath: /etc/ceph
          name: etcceph
        - mountPath: /etc/ceph/ceph.conf
          name: ceph-etc
          readOnly: true
          subPath: ceph.conf
        - mountPath: /tmp/client-keyring
          name: ceph-backup-keyring
          readOnly: true
          subPath: key
        - mountPath: /var/lib/cinder/coordination
          name: cinder-coordination
        - mountPath: /etc/sudoers.d/kolla_cinder_sudoers
          name: cinder-etc
          readOnly: true
          subPath: cinder_sudoers
        - mountPath: /etc/sudoers.d/kolla_cinder_volume_sudoers
          name: cinder-etc
          readOnly: true
          subPath: cinder_sudoers
        - mountPath: /etc/cinder/rootwrap.conf
          name: cinder-etc
          readOnly: true
          subPath: rootwrap.conf
        - mountPath: /etc/cinder/rootwrap.d/volume.filters
          name: cinder-etc
          readOnly: true
          subPath: volume.filters
      dnsPolicy: ClusterFirst
      initContainers:
      - command:
        - kubernetes-entrypoint
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        - name: INTERFACE_NAME
          value: eth0
        - name: PATH
          value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
        - name: DEPENDENCY_SERVICE
          value: openstack:keystone-api,openstack:cinder-api
        - name: DEPENDENCY_JOBS
          value: cinder-db-sync,cinder-ks-user,cinder-ks-endpoints,cinder-rabbit-init,cinder-storage-init,cinder-backup-storage-init
        - name: DEPENDENCY_DAEMONSET
        - name: DEPENDENCY_CONTAINER
        - name: DEPENDENCY_POD_JSON
        - name: DEPENDENCY_CUSTOM_RESOURCE
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
        imagePullPolicy: IfNotPresent
        name: init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 65534
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      - command:
        - /tmp/ceph-keyring.sh
        env:
        - name: RBD_USER
          value: cinderbackup
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/cinder:main@sha256:abbffdab1bddcb6cfbcdcd10d618c53f34f0c72cb81043957c14b3d1abe7c499
        imagePullPolicy: IfNotPresent
        name: ceph-backup-keyring-placement
        resources: {}
        securityContext:
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /etc/ceph
          name: etcceph
        - mountPath: /tmp/ceph-keyring.sh
          name: cinder-bin
          readOnly: true
          subPath: ceph-keyring.sh
        - mountPath: /tmp/client-keyring
          name: ceph-backup-keyring
          readOnly: true
          subPath: key
      - command:
        - /tmp/ceph-keyring.sh
        env:
        - name: RBD_USER
          value: cinder
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/cinder:main@sha256:abbffdab1bddcb6cfbcdcd10d618c53f34f0c72cb81043957c14b3d1abe7c499
        imagePullPolicy: IfNotPresent
        name: ceph-keyring-placement-rbd1
        resources: {}
        securityContext:
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /etc/ceph
          name: etcceph
        - mountPath: /tmp/ceph-keyring.sh
          name: cinder-bin
          readOnly: true
          subPath: ceph-keyring.sh
        - mountPath: /tmp/client-keyring
          name: ceph-keyring
          readOnly: true
          subPath: key
      - command:
        - chown
        - -R
        - 'cinder:'
        - /var/lib/cinder/coordination
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/cinder:main@sha256:abbffdab1bddcb6cfbcdcd10d618c53f34f0c72cb81043957c14b3d1abe7c499
        imagePullPolicy: IfNotPresent
        name: ceph-coordination-volume-perms
        resources: {}
        securityContext:
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /var/lib/cinder/coordination
          name: cinder-coordination
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: cinder-backup
      serviceAccountName: cinder-backup
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: cinder-tmp
      - name: cinder-etc
        secret:
          defaultMode: 292
          secretName: cinder-etc
      - configMap:
          defaultMode: 365
          name: cinder-bin
        name: cinder-bin
      - emptyDir: {}
        name: etcceph
      - configMap:
          defaultMode: 292
          name: ceph-etc
        name: ceph-etc
      - name: ceph-backup-keyring
        secret:
          defaultMode: 420
          secretName: cinder-backup-rbd-keyring
      - name: ceph-keyring
        secret:
          defaultMode: 420
          secretName: cinder-volume-rbd-keyring
      - emptyDir: {}
        name: cinder-coordination
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-02-27T23:59:07Z"
    lastUpdateTime: "2026-02-27T23:59:07Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-02-27T23:59:07Z"
    lastUpdateTime: "2026-02-28T00:03:25Z"
    message: ReplicaSet "cinder-backup-577b5574d5" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
