apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-02T14:00:44Z"
  generation: 2
  labels:
    component: cinder-scheduler
    service: cinder
  name: cinder-scheduler
  namespace: openstack
  ownerReferences:
  - apiVersion: cinder.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: CinderScheduler
    name: cinder-scheduler
    uid: 3687acdc-53c9-49df-878f-5c033a7e247f
  resourceVersion: "45899"
  uid: 8dde86fe-65c5-41a3-9dd4-7624560b51f2
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: OrderedReady
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      component: cinder-scheduler
      service: cinder
  serviceName: ""
  template:
    metadata:
      annotations:
        k8s.v1.cni.cncf.io/networks: '[]'
      creationTimestamp: null
      labels:
        component: cinder-scheduler
        service: cinder
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: component
                  operator: In
                  values:
                  - cinder-scheduler
              topologyKey: kubernetes.io/hostname
            weight: 100
      containers:
      - args:
        - -c
        - /usr/local/bin/kolla_start
        command:
        - /bin/bash
        env:
        - name: CONFIG_HASH
          value: n94hf5h698h545h58bh65ch557hd5h88hfh64h544h89h65chcdh65bhb9h5d5hc8h678h6dh696h557hfch697h8bhf7h9bh555h67h66fh56q
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        image: quay.io/podified-antelope-centos9/openstack-cinder-scheduler:current-podified
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8080
            scheme: HTTP
          initialDelaySeconds: 3
          periodSeconds: 3
          successThreshold: 1
          timeoutSeconds: 5
        name: cinder-scheduler
        resources: {}
        securityContext:
          runAsUser: 42407
        startupProbe:
          failureThreshold: 12
          httpGet:
            path: /
            port: 8080
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/machine-id
          name: etc-machine-id
          readOnly: true
        - mountPath: /usr/local/bin/container-scripts
          name: scripts
          readOnly: true
        - mountPath: /var/lib/config-data/merged
          name: config-data
          readOnly: true
        - mountPath: /etc/my.cnf
          name: config-data
          readOnly: true
          subPath: my.cnf
        - mountPath: /etc/cinder/cinder.conf.d
          name: config-data-custom
          readOnly: true
        - mountPath: /var/lib/kolla/config_files/config.json
          name: config-data
          readOnly: true
          subPath: cinder-scheduler-config.json
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
      - command:
        - /usr/local/bin/container-scripts/healthcheck.py
        - scheduler
        - /etc/cinder/cinder.conf.d
        image: quay.io/podified-antelope-centos9/openstack-cinder-scheduler:current-podified
        imagePullPolicy: IfNotPresent
        name: probe
        resources: {}
        securityContext:
          runAsGroup: 42407
          runAsUser: 42407
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/machine-id
          name: etc-machine-id
          readOnly: true
        - mountPath: /usr/local/bin/container-scripts
          name: scripts
          readOnly: true
        - mountPath: /var/lib/config-data/merged
          name: config-data
          readOnly: true
        - mountPath: /etc/my.cnf
          name: config-data
          readOnly: true
          subPath: my.cnf
        - mountPath: /etc/cinder/cinder.conf.d
          name: config-data-custom
          readOnly: true
        - mountPath: /var/lib/kolla/config_files/config.json
          name: config-data
          readOnly: true
          subPath: cinder-scheduler-config.json
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: cinder-cinder
      serviceAccountName: cinder-cinder
      terminationGracePeriodSeconds: 30
      volumes:
      - hostPath:
          path: /etc/machine-id
          type: ""
        name: etc-machine-id
      - name: scripts
        secret:
          defaultMode: 493
          secretName: cinder-scripts
      - name: config-data
        secret:
          defaultMode: 420
          secretName: cinder-config-data
      - name: config-data-custom
        secret:
          defaultMode: 420
          secretName: cinder-scheduler-config-data
      - name: combined-ca-bundle
        secret:
          defaultMode: 292
          secretName: combined-ca-bundle
  updateStrategy:
    rollingUpdate:
      partition: 0
    type: RollingUpdate
status:
  availableReplicas: 1
  collisionCount: 0
  currentReplicas: 1
  currentRevision: cinder-scheduler-546d748bb9
  observedGeneration: 2
  readyReplicas: 1
  replicas: 1
  updateRevision: cinder-scheduler-546d748bb9
  updatedReplicas: 1
