apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: senlin
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-22T19:08:19Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: senlin
    component: engine
    release_group: senlin
  name: senlin-engine
  namespace: openstack
  resourceVersion: "20010"
  uid: dd8a6e52-9b7c-4bd6-9897-a7546451b8eb
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      application: senlin
      component: engine
      release_group: senlin
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: aebe6c8a587455d3a62bbe4a858320734710a77bb1fdf94c0c269467c7f3f83c
        configmap-etc-hash: f18103d461f1759959652e3b26355e16948d86e74d7d1f2a15c1a32c5abb457d
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: senlin
        component: engine
        release_group: senlin
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - senlin
                - key: application
                  operator: In
                  values:
                  - senlin
                - key: component
                  operator: In
                  values:
                  - engine
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/senlin-engine.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/senlin:2023.1@sha256:76198b20b5dd51f2796ada921a1c6ddd34189a1819e636f6f9520564ba9ea59d
        imagePullPolicy: IfNotPresent
        name: senlin-engine
        resources: {}
        securityContext:
          runAsUser: 42424
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/senlin-engine.sh
          name: senlin-bin
          readOnly: true
          subPath: senlin-engine.sh
        - mountPath: /etc/senlin
          name: pod-etc-senlin
        - mountPath: /etc/senlin/senlin.conf
          name: senlin-etc
          readOnly: true
          subPath: senlin.conf
        - mountPath: /etc/senlin/policy.yaml
          name: senlin-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:keystone-api
        - name: DEPENDENCY_JOBS
          value: senlin-db-sync,senlin-ks-user,senlin-ks-endpoints,senlin-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: {}
      serviceAccount: senlin-engine
      serviceAccountName: senlin-engine
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: pod-etc-senlin
      - configMap:
          defaultMode: 365
          name: senlin-bin
        name: senlin-bin
      - name: senlin-etc
        secret:
          defaultMode: 292
          secretName: senlin-etc
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-22T19:09:59Z"
    lastUpdateTime: "2026-04-22T19:09:59Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-22T19:08:19Z"
    lastUpdateTime: "2026-04-22T19:09:59Z"
    message: ReplicaSet "senlin-engine-6678465c9" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
