apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: nova
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-14T12:41:05Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: nova
    component: os-api
    release_group: nova
  name: nova-api-osapi
  namespace: openstack
  resourceVersion: "17148"
  uid: f80e650d-5666-4d3c-800a-7c5689ece5be
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: nova
      component: os-api
      release_group: nova
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: 8a57d562bbf9c49449ea876ab5fea8e17ef2b87db3cfbf34c062d99bc45818c9
        configmap-etc-hash: 0b704cd43d9fb876ff9e2339e521d961d46e9421fc4f290bb10db6a3ab2b3995
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: nova
        component: os-api
        release_group: nova
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - nova
                - key: application
                  operator: In
                  values:
                  - nova
                - key: component
                  operator: In
                  values:
                  - os-api
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/nova-api.sh
        - start
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/nova:2024.1@sha256:d031fe136daf704f13852e8457ae3d0b70a069c786196733201f488dfbd05487
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/nova-api.sh
              - stop
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8774
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        name: nova-osapi
        ports:
        - containerPort: 8774
          name: n-api
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8774
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /var/lib/nova
          name: pod-var-nova
        - mountPath: /tmp/nova-api.sh
          name: nova-bin
          readOnly: true
          subPath: nova-api.sh
        - mountPath: /etc/nova/nova.conf
          name: nova-etc
          readOnly: true
          subPath: nova.conf
        - mountPath: /etc/nova/nova-api-uwsgi.ini
          name: nova-etc
          readOnly: true
          subPath: nova-api-uwsgi.ini
        - mountPath: /etc/nova/api-paste.ini
          name: nova-etc
          readOnly: true
          subPath: api-paste.ini
        - mountPath: /etc/nova/policy.yaml
          name: nova-etc
          readOnly: true
          subPath: policy.yaml
        - mountPath: /etc/nova/api_audit_map.conf
          name: nova-etc
          readOnly: true
          subPath: api_audit_map.conf
      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:rabbitmq-nova,openstack:percona-xtradb-haproxy,openstack:keystone-api
        - name: DEPENDENCY_JOBS
          value: nova-db-sync,nova-ks-user,nova-ks-endpoints,nova-rabbit-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
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: nova-api-osapi
      serviceAccountName: nova-api-osapi
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: pod-var-nova
      - configMap:
          defaultMode: 365
          name: nova-bin
        name: nova-bin
      - name: nova-etc
        secret:
          defaultMode: 292
          secretName: nova-etc
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-14T12:41:05Z"
    lastUpdateTime: "2026-04-14T12:41:05Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-14T12:41:05Z"
    lastUpdateTime: "2026-04-14T12:43:56Z"
    message: ReplicaSet "nova-api-osapi-6fb55cd5fd" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
