apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-04T02:28:05Z"
  generation: 4
  name: nova-metadata
  namespace: openstack
  ownerReferences:
  - apiVersion: nova.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: NovaMetadata
    name: nova-metadata
    uid: cca3c34d-d5b2-4173-bba3-b8707128732c
  resourceVersion: "55026"
  uid: 93256281-f068-41fb-9a50-08d9535c3695
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: Parallel
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      service: nova-metadata
  serviceName: ""
  template:
    metadata:
      annotations:
        k8s.v1.cni.cncf.io/networks: '[]'
      creationTimestamp: null
      labels:
        service: nova-metadata
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: service
                  operator: In
                  values:
                  - nova-metadata
              topologyKey: kubernetes.io/hostname
            weight: 100
      containers:
      - args:
        - --single-child
        - --
        - /bin/sh
        - -c
        - /usr/bin/tail -n+1 -F /var/log/nova/nova-metadata.log 2>/dev/null
        command:
        - /usr/bin/dumb-init
        env:
        - name: CONFIG_HASH
          value: nfch688h55bh5d8h8dh5cbh7h55h547h574hdch8bhcdh5b4hdch5b8h74h547hf9h684h589h559h5h86h65h58bh5bfh64h5bdh5c7h9h5b9q
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        image: 38.102.83.110:5001/podified-master-centos10/openstack-nova-api:watcher_latest
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 10
          httpGet:
            path: /
            port: 8775
            scheme: HTTPS
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 30
        name: nova-metadata-log
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8775
            scheme: HTTPS
          periodSeconds: 18
          successThreshold: 1
          timeoutSeconds: 18
        resources: {}
        securityContext:
          runAsUser: 42436
        startupProbe:
          failureThreshold: 6
          httpGet:
            path: /
            port: 8775
            scheme: HTTPS
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/log/nova
          name: logs
      - args:
        - -c
        - /usr/local/bin/kolla_start
        command:
        - /bin/bash
        env:
        - name: CONFIG_HASH
          value: nfch688h55bh5d8h8dh5cbh7h55h547h574hdch8bhcdh5b4hdch5b8h74h547hf9h684h589h559h5h86h65h58bh5bfh64h5bdh5c7h9h5b9q
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        image: 38.102.83.110:5001/podified-master-centos10/openstack-nova-api:watcher_latest
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 10
          httpGet:
            path: /
            port: 8775
            scheme: HTTPS
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 30
        name: nova-metadata-metadata
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8775
            scheme: HTTPS
          periodSeconds: 18
          successThreshold: 1
          timeoutSeconds: 18
        resources: {}
        securityContext:
          runAsUser: 42436
        startupProbe:
          failureThreshold: 6
          httpGet:
            path: /
            port: 8775
            scheme: HTTPS
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/lib/openstack/config
          name: config-data
        - mountPath: /var/log/nova
          name: logs
        - mountPath: /var/lib/kolla/config_files/config.json
          name: config-data
          subPath: nova-metadata-config.json
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
        - mountPath: /var/lib/config-data/tls/certs/nova-metadata.crt
          name: nova-metadata-tls-certs
          readOnly: true
          subPath: tls.crt
        - mountPath: /var/lib/config-data/tls/private/nova-metadata.key
          name: nova-metadata-tls-certs
          readOnly: true
          subPath: tls.key
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: nova-nova
      serviceAccountName: nova-nova
      terminationGracePeriodSeconds: 30
      volumes:
      - name: config-data
        secret:
          defaultMode: 416
          secretName: nova-metadata-config-data
      - emptyDir: {}
        name: logs
      - name: combined-ca-bundle
        secret:
          defaultMode: 292
          secretName: combined-ca-bundle
      - name: nova-metadata-tls-certs
        secret:
          defaultMode: 256
          secretName: cert-nova-metadata-internal-svc
  updateStrategy:
    rollingUpdate:
      partition: 0
    type: RollingUpdate
status:
  availableReplicas: 1
  collisionCount: 0
  currentReplicas: 1
  currentRevision: nova-metadata-699cdfbf9
  observedGeneration: 4
  readyReplicas: 1
  replicas: 1
  updateRevision: nova-metadata-699cdfbf9
  updatedReplicas: 1
