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-07T00:28:49Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: cinder
    component: api
    release_group: cinder
  name: cinder-api
  namespace: openstack
  resourceVersion: "12653"
  uid: 79caf9fe-557b-41d6-88a5-cf6d7c769e3a
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: cinder
      component: api
      release_group: cinder
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: fd0dffb44e1ac92c691a5977f1de682900489a6edf5afcdc1e58a47c2cdea2de
        configmap-etc-hash: ca9f642390e9f382b24686f064facf0b16fe78aa69ccaf5fe9db4cda27fb6209
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: cinder
        component: api
        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:
                  - api
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/cinder-api.sh
        - start
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/cinder:2024.2@sha256:3292b1e2ff8657be6e592178912ec03157a6c075fcb684153b697bfca4bbd34d
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/cinder-api.sh
              - stop
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8776
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: cinder-api
        ports:
        - containerPort: 8776
          name: c-api
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8776
            scheme: HTTP
          initialDelaySeconds: 30
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /var/www/cgi-bin/cinder
          name: wsgi-cinder
        - mountPath: /tmp/cinder-api.sh
          name: cinder-bin
          readOnly: true
          subPath: cinder-api.sh
        - mountPath: /etc/cinder/cinder-api-uwsgi.ini
          name: cinder-etc
          readOnly: true
          subPath: cinder-api-uwsgi.ini
        - 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: /etc/cinder/api_audit_map.conf
          name: cinder-etc
          readOnly: true
          subPath: api_audit_map.conf
        - mountPath: /etc/cinder/resource_filters.json
          name: cinder-etc
          readOnly: true
          subPath: resource_filters.json
        - 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:percona-xtradb-haproxy,openstack:keystone-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:2024.2@sha256:3292b1e2ff8657be6e592178912ec03157a6c075fcb684153b697bfca4bbd34d
        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-api
      serviceAccountName: cinder-api
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: wsgi-cinder
      - 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-07T00:28:49Z"
    lastUpdateTime: "2026-04-07T00:28:49Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-07T00:28:49Z"
    lastUpdateTime: "2026-04-07T00:32:10Z"
    message: ReplicaSet "cinder-api-69f75f5fb5" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
