apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: heat
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-25T07:09:22Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: heat
    component: api
    release_group: heat
  name: heat-api
  namespace: openstack
  resourceVersion: "11135"
  uid: a7d905cd-7b73-461b-b87f-f92a75ee4a5a
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: heat
      component: api
      release_group: heat
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: 628162dda4db1a76da1eabedff6e45eb79db18f62852963456b9b0967f146607
        configmap-etc-hash: cbf340b83df65941887d1313219f65ef6c17bf4555957487441ea72d675c8cc0
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: heat
        component: api
        release_group: heat
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - heat
                - key: application
                  operator: In
                  values:
                  - heat
                - key: component
                  operator: In
                  values:
                  - api
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/heat-api.sh
        - start
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/heat-api.sh
              - stop
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8004
            scheme: HTTP
          initialDelaySeconds: 10
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        name: heat-api
        ports:
        - containerPort: 8004
          name: h-api
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 8004
            scheme: HTTP
          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: /etc/heat
          name: pod-etc-heat
        - mountPath: /var/www/cgi-bin/heat
          name: wsgi-heat
        - mountPath: /tmp/heat-api.sh
          name: heat-bin
          readOnly: true
          subPath: heat-api.sh
        - mountPath: /etc/heat/heat.conf
          name: heat-etc
          readOnly: true
          subPath: heat.conf
        - mountPath: /etc/heat/heat-api-uwsgi.ini
          name: heat-etc
          readOnly: true
          subPath: heat-api-uwsgi.ini
        - mountPath: /etc/heat/api-paste.ini
          name: heat-etc
          readOnly: true
          subPath: api-paste.ini
        - mountPath: /etc/heat/policy.yaml
          name: heat-etc
          readOnly: true
          subPath: policy.yaml
        - mountPath: /etc/heat/api_audit_map.conf
          name: heat-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:percona-xtradb-haproxy,openstack:rabbitmq-heat,openstack:keystone-api
        - name: DEPENDENCY_JOBS
          value: heat-db-sync,heat-rabbit-init,heat-ks-user,heat-domain-ks-user,heat-ks-endpoints,heat-bootstrap
        - name: DEPENDENCY_DAEMONSET
        - name: DEPENDENCY_CONTAINER
        - name: DEPENDENCY_POD_JSON
        - name: DEPENDENCY_CUSTOM_RESOURCE
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
        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: heat-api
      serviceAccountName: heat-api
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: pod-etc-heat
      - emptyDir: {}
        name: wsgi-heat
      - configMap:
          defaultMode: 365
          name: heat-bin
        name: heat-bin
      - name: heat-etc
        secret:
          defaultMode: 292
          secretName: heat-etc
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-25T07:09:22Z"
    lastUpdateTime: "2026-04-25T07:09:22Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-25T07:09:22Z"
    lastUpdateTime: "2026-04-25T07:12:52Z"
    message: ReplicaSet "heat-api-574cfbd5df" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
