apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-04T02:26:06Z"
  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: 7d8938c6-1e70-47e4-bfca-491037e107fd
  resourceVersion: "51318"
  uid: cc8562ca-d0ba-41b9-b1c5-94282d90003d
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: n65bhf9h5cchc9h684h589h689h66dhcfh55h659h595h8fh68dh54fhd4h57ch5c9h64chdfh74h6fh65hdbhc5h54ch9hc9h677hc9h5bfh698q
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        image: 38.102.83.110:5001/podified-master-centos10/openstack-cinder-scheduler:watcher_latest
        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: 38.102.83.110:5001/podified-master-centos10/openstack-cinder-scheduler:watcher_latest
        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-58d5d7d5
  observedGeneration: 2
  readyReplicas: 1
  replicas: 1
  updateRevision: cinder-scheduler-58d5d7d5
  updatedReplicas: 1
