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-03-31T05:34:12Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: heat
    component: engine
    release_group: heat
  name: heat-engine
  namespace: openstack
  resourceVersion: "22184"
  uid: 45d53bbf-572d-4bb1-ad69-1eb4311cb580
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: heat
      component: engine
      release_group: heat
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: 628162dda4db1a76da1eabedff6e45eb79db18f62852963456b9b0967f146607
        configmap-etc-hash: a4207ca6e00a7d6558622c9b061a5587aeac5c7ea353300dd2d9979355e98b5b
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: heat
        component: engine
        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:
                  - engine
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/heat-engine.sh
        - start
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:zed@sha256:7634d0f354cdd12bf065617f3ffb614e9efbd57bba6f1de710ef95780e1f5bee
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/heat-engine.sh
              - stop
        name: heat-engine
        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: /tmp/heat-engine.sh
          name: heat-bin
          readOnly: true
          subPath: heat-engine.sh
        - mountPath: /etc/heat/heat.conf
          name: heat-etc
          readOnly: true
          subPath: heat.conf
        - mountPath: /etc/heat/policy.yaml
          name: heat-etc
          readOnly: true
          subPath: policy.yaml
      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@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: heat-engine
      serviceAccountName: heat-engine
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: pod-etc-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-03-31T05:34:12Z"
    lastUpdateTime: "2026-03-31T05:34:12Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-03-31T05:34:12Z"
    lastUpdateTime: "2026-03-31T05:36:54Z"
    message: ReplicaSet "heat-engine-85cf8c89bc" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
