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-04-22T18:52:53Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: cinder
    component: scheduler
    release_group: cinder
  name: cinder-scheduler
  namespace: openstack
  resourceVersion: "13364"
  uid: 4be1eb51-c919-4317-bd09-b2c9d499eccc
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: cinder
      component: scheduler
      release_group: cinder
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: fd0dffb44e1ac92c691a5977f1de682900489a6edf5afcdc1e58a47c2cdea2de
        configmap-etc-hash: 87247cf56d4bbbfd52e051b588deada94f9096531ca2ad74d29f8ec8bc5b6188
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: cinder
        component: scheduler
        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:
                  - scheduler
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/cinder-scheduler.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/cinder:2023.1@sha256:ce65512a6a614622ed4a7970b7f64bf508b4f80d9c4dd5668e4d16b842393aea
        imagePullPolicy: IfNotPresent
        name: cinder-scheduler
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/cinder-scheduler.sh
          name: cinder-bin
          readOnly: true
          subPath: cinder-scheduler.sh
        - mountPath: /etc/cinder/cinder.conf
          name: cinder-etc
          readOnly: true
          subPath: cinder.conf
        - mountPath: /etc/cinder/api-paste.ini
          name: cinder-etc
          readOnly: true
          subPath: api-paste.ini
        - mountPath: /etc/cinder/policy.yaml
          name: cinder-etc
          readOnly: true
          subPath: policy.yaml
        - mountPath: /var/lib/cinder/coordination
          name: cinder-coordination
      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
        - name: DEPENDENCY_DAEMONSET
        - name: DEPENDENCY_CONTAINER
        - name: DEPENDENCY_POD_JSON
        - name: DEPENDENCY_CUSTOM_RESOURCE
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
        imagePullPolicy: IfNotPresent
        name: init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 65534
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      - command:
        - chown
        - -R
        - 'cinder:'
        - /var/lib/cinder/coordination
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/cinder:2023.1@sha256:ce65512a6a614622ed4a7970b7f64bf508b4f80d9c4dd5668e4d16b842393aea
        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-scheduler
      serviceAccountName: cinder-scheduler
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - configMap:
          defaultMode: 365
          name: cinder-bin
        name: cinder-bin
      - name: cinder-etc
        secret:
          defaultMode: 292
          secretName: cinder-etc
      - emptyDir: {}
        name: cinder-coordination
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-22T18:52:53Z"
    lastUpdateTime: "2026-04-22T18:52:53Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-22T18:52:53Z"
    lastUpdateTime: "2026-04-22T18:55:59Z"
    message: ReplicaSet "cinder-scheduler-54dfccd695" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
