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-22T19:00:58Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: nova
    component: metadata
    release_group: nova
  name: nova-api-metadata
  namespace: openstack
  resourceVersion: "16934"
  uid: 5193f2c0-fab7-48cb-9e38-876cc6ec8f47
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: nova
      component: metadata
      release_group: nova
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: 8a57d562bbf9c49449ea876ab5fea8e17ef2b87db3cfbf34c062d99bc45818c9
        configmap-etc-hash: 3b0287ee30463367406d38dfa7e573dea247e1eb48bb8bb2fcb242400df374da
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: nova
        component: metadata
        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:
                  - metadata
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/nova-api-metadata.sh
        - start
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/nova:2023.1@sha256:61cf034f65a01e090a06bd114dcb819dd2177b86d08d8964172ac4aa19ba978a
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/nova-api-metadata.sh
              - stop
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8775
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        name: nova-api
        ports:
        - containerPort: 8775
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8775
            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: /tmp/nova-api-metadata.sh
          name: nova-bin
          readOnly: true
          subPath: nova-api-metadata.sh
        - mountPath: /etc/nova/nova-metadata-uwsgi.ini
          name: nova-etc
          readOnly: true
          subPath: nova-metadata-uwsgi.ini
        - mountPath: /sbin/iptables
          name: nova-bin
          readOnly: true
          subPath: fake-iptables.sh
        - mountPath: /sbin/iptables-restore
          name: nova-bin
          readOnly: true
          subPath: fake-iptables.sh
        - mountPath: /sbin/iptables-save
          name: nova-bin
          readOnly: true
          subPath: fake-iptables.sh
        - mountPath: /etc/nova/nova.conf
          name: nova-etc
          readOnly: true
          subPath: nova.conf
        - 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
        - mountPath: /etc/sudoers.d/kolla_nova_sudoers
          name: nova-etc
          readOnly: true
          subPath: nova_sudoers
        - mountPath: /etc/nova/rootwrap.conf
          name: nova-etc
          readOnly: true
          subPath: rootwrap.conf
        - mountPath: /etc/nova/rootwrap.d/api-metadata.filters
          name: nova-etc
          readOnly: true
          subPath: api-metadata.filters
        - mountPath: /tmp/pod-shared
          name: pod-shared
          readOnly: true
      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
      - command:
        - /tmp/nova-api-metadata-init.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/nova:2023.1@sha256:61cf034f65a01e090a06bd114dcb819dd2177b86d08d8964172ac4aa19ba978a
        imagePullPolicy: IfNotPresent
        name: nova-api-metadata-init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/nova-api-metadata-init.sh
          name: nova-bin
          readOnly: true
          subPath: nova-api-metadata-init.sh
        - mountPath: /etc/nova/nova.conf
          name: nova-etc
          readOnly: true
          subPath: nova.conf
        - mountPath: /tmp/pod-shared
          name: pod-shared
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: nova-api-metadata
      serviceAccountName: nova-api-metadata
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - configMap:
          defaultMode: 365
          name: nova-bin
        name: nova-bin
      - name: nova-etc
        secret:
          defaultMode: 292
          secretName: nova-etc
      - emptyDir: {}
        name: pod-shared
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-22T19:00:58Z"
    lastUpdateTime: "2026-04-22T19:00:58Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-22T19:00:58Z"
    lastUpdateTime: "2026-04-22T19:03:58Z"
    message: ReplicaSet "nova-api-metadata-7956d67b7d" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
