apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: aebe6c8a587455d3a62bbe4a858320734710a77bb1fdf94c0c269467c7f3f83c
    configmap-etc-hash: 4674bbccb6789cb7a55e7ef51f96f5a3f778f7dda4f34f72bafad610b9855b2b
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-23T00:51:43Z"
  generateName: senlin-api-7788965b97-
  labels:
    application: senlin
    component: api
    pod-template-hash: 7788965b97
    release_group: senlin
  name: senlin-api-7788965b97-8jxjf
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: senlin-api-7788965b97
    uid: 06f35bbb-2815-4c9f-8787-9af952421e98
  resourceVersion: "18360"
  uid: 77cfb42e-676c-468d-8e96-d039527cf0d9
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:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/senlin-api.sh
    - start
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/senlin:2023.1@sha256:76198b20b5dd51f2796ada921a1c6ddd34189a1819e636f6f9520564ba9ea59d
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/senlin-api.sh
          - stop
    name: senlin-api
    ports:
    - containerPort: 8778
      name: s-api
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /
        port: 8778
        scheme: HTTP
      initialDelaySeconds: 5
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      runAsUser: 42424
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/senlin-api.sh
      name: senlin-bin
      readOnly: true
      subPath: senlin-api.sh
    - mountPath: /etc/senlin
      name: pod-etc-senlin
    - mountPath: /var/cache/senlin
      name: pod-var-cache-senlin
    - mountPath: /etc/senlin/senlin-api-uwsgi.ini
      name: senlin-etc
      readOnly: true
      subPath: senlin-api-uwsgi.ini
    - mountPath: /etc/senlin/senlin.conf
      name: senlin-etc
      readOnly: true
      subPath: senlin.conf
    - mountPath: /etc/senlin/api-paste.ini
      name: senlin-etc
      readOnly: true
      subPath: api-paste.ini
    - mountPath: /etc/senlin/policy.yaml
      name: senlin-etc
      readOnly: true
      subPath: policy.yaml
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-trhbx
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  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,openstack:rabbitmq-senlin
    - 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
    volumeMounts:
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-trhbx
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: senlin-api
  serviceAccountName: senlin-api
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  volumes:
  - emptyDir: {}
    name: pod-tmp
  - emptyDir: {}
    name: pod-etc-senlin
  - emptyDir: {}
    name: pod-var-cache-senlin
  - configMap:
      defaultMode: 365
      name: senlin-bin
    name: senlin-bin
  - name: senlin-etc
    secret:
      defaultMode: 292
      secretName: senlin-etc
  - name: kube-api-access-trhbx
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2026-04-23T00:53:22Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-23T00:53:34Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-23T00:53:34Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-23T00:51:43Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://bbb04d6e5348e7f57aa593456d45d75c619768890c9141e9f5cdc5e88f19d484
    image: sha256:554624938f5d8e6a427cf986408a56a6f20d509673a64c8a2432f61d47175c12
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/senlin@sha256:76198b20b5dd51f2796ada921a1c6ddd34189a1819e636f6f9520564ba9ea59d
    lastState: {}
    name: senlin-api
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-04-23T00:53:22Z"
  hostIP: 199.204.45.244
  initContainerStatuses:
  - containerID: containerd://50e285754ec319f5b0bce4df78197d8cd790d008c47d0b3947a4fea832f67b9c
    image: sha256:d656bd5737950b86b0ecff4b0206024769c78ea55e2f9f4c840c3cc2a10caaf8
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://50e285754ec319f5b0bce4df78197d8cd790d008c47d0b3947a4fea832f67b9c
        exitCode: 0
        finishedAt: "2026-04-23T00:53:21Z"
        reason: Completed
        startedAt: "2026-04-23T00:51:45Z"
  phase: Running
  podIP: 10.0.0.33
  podIPs:
  - ip: 10.0.0.33
  qosClass: BestEffort
  startTime: "2026-04-23T00:51:43Z"
